Hi Sam,

SOCKS is a socket level protocol that is supposed to be transparent
for the application using the sockets. So you best take a look at
org.apache.commons.httpclient.protocol.ProtocolSocketFactory.
By implementing your own ProtocolSocketFactory, you are free to
return a plain socket or one that uses SOCKS.

cheers,
  Roland





Sam Berlin <[EMAIL PROTECTED]>
14.04.2004 19:04
Please respond to "Commons HttpClient Project"
 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        SOCKS Proxies


Hi All,

The website states the SOCKS proxies are supported by the setting the 
native java properties that convert Sockets to using SOCKS internally. 
Unfortunately, this solution is not possible for us, as we need to be 
able to create Sockets sometimes with and sometimes without SOCKS.

How would one go about implementing SOCKS as an additional proxying 
method (on the 2.0 code)?  Some rough pointers to the general classes 
that require changes would be useful.

Thanks much,
  Sam


---------------------------------------------------------------------
To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]


Reply via email to