Skip to main content



      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 16:23
Eclipse UserFriend
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: Sat Jul 05 15:20:59 EDT 2025

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

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

Back to the top