h-tadagawa / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Support for SOCKS proxy #168

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have to test REST APIs that I can only reach via multiple SSH hops. Currently 
I have to run a local proxy that supports both SOCKS and HTTP proxy that points 
to the start of my SSH chain, and then point RESTClient at my local proxy.

It would be useful to have RESTClient talk to the SOCKS proxy directly.

Original issue reported on code.google.com by mcfarla...@gmail.com on 13 Feb 2013 at 5:21

GoogleCodeExporter commented 8 years ago
Let me check if the underlying library supports this.

Original comment by subwiz on 15 Feb 2013 at 5:04

GoogleCodeExporter commented 8 years ago
I was able to get it use a SOCKS proxy by disabling the proxy config in the app 
and using this command to start it: java -DsocksProxyHost=localhost 
-DsocksProxyPort=9989 -jar restclient-ui-3.1-jar-with-dependencies.jar

Original comment by mcfarla...@gmail.com on 15 Feb 2013 at 9:16

GoogleCodeExporter commented 8 years ago
Thanks for giving me pointer.

We use the Apache HTTP Client. There seems to be some code examples in this 
thread:

http://httpcomponents.10934.n7.nabble.com/Fw-SOCKS-proxy-example-td12931.html

Original comment by subwiz on 16 Feb 2013 at 3:05