|Using a java.net.URLConnection with a proxy [message #499470]
||Sun, 22 November 2009 21:23
| Lance Walton
Registered: July 2009
I want to HTTP POST some stuff from an Eclipse plugin to a server. To do this, I create a URLConnection, set its doOutput property, get it's outputSream, squirt my stuff up the output stream and then read the response.
This works perfectly well when I run the server locally. However, when I try to use it through a proxy, it doesn't connect. I know I can contact the server through the proxy because if I put the URL into a browser, I can see it connect.
I know that Eclipse has got it's own bits and pieces for dealing with a proxy. How do I use this to achieve my goal?
Powered by FUDForum
. Page generated in 0.01969 seconds