[ jetty-Bugs-1289828 ] CONNECT method not supported by ProxyHandler used in a chain

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ jetty-Bugs-1289828 ] CONNECT method not supported by ProxyHandler used in a chain

SourceForge.net
Bugs item #1289828, was opened at 2005-09-13 16:11
Message generated for change (Comment added) made by giacof
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1289828&group_id=7322

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTTP protocol
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Omen (giacof)
Assigned to: Nobody/Anonymous (nobody)
Summary: CONNECT method not supported by ProxyHandler used in a chain

Initial Comment:
If one tries to use ProxyHandler to implement a proxy
which runs behind a firewall or simply chained to
another outbound proxy, by setting the System
properties "http.proxyHost" and "http.proxyPort", an
exception will be thrown whenever a CONNECT request is
handled.
Looking at the code, from line 372:

            InetAddrPort addrPort=new
InetAddrPort(uri.toString());

            if
(isForbidden(HttpMessage.__SSL_SCHEME,addrPort.getHost(),
             addrPort.getPort(),false))
            {
                sendForbid(request,response,uri);
            }
            else
            {
                Socket socket = new
Socket(addrPort.getInetAddress(),addrPort.getPort());

The new Socket() call fails, as you cannot directly
access the requested resource if you have to pass
through a chained proxy/firewall.


----------------------------------------------------------------------

>Comment By: Jack Omen (giacof)
Date: 2005-09-14 10:34

Message:
Logged In: YES
user_id=1100438

The here attached class I developed is able to handle
correctly a Http CONNECT request when the next outbound
proxy is set.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107322&aid=1289828&group_id=7322


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jetty-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-discuss