Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using a java.net.URLConnection with a proxy
Using a java.net.URLConnection with a proxy [message #499470] Sun, 22 November 2009 21:23
Lance Walton is currently offline Lance WaltonFriend
Messages: 5
Registered: July 2009
Junior Member
Hi.

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?

Regards,

Lance
Previous Topic:Unable to contribute to editor menus using org.eclipse.ui.menus
Next Topic:Override PropertiesActionProvider in Navigator
Goto Forum:
  


Current Time: Mon Dec 22 06:21:37 GMT 2014

Powered by FUDForum. Page generated in 0.02047 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software