aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes prob with Jakarta HttpClient & HostConfiguration Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "prob with Jakarta HttpClient & HostConfiguration" Watch "prob with Jakarta HttpClient & HostConfiguration" New topic
Author

prob with Jakarta HttpClient & HostConfiguration

Greg A Watson
Greenhorn

Joined: Mar 28, 2006
Posts: 6
I had a method which opens up http connections to URLs outside our DMZ, and to hide the implementation details of our firewall I make the connection via a proxy. I've previously used the java.net.HttpURLConnection class, and specified a proxy by setting the httpProxy, httpProxy as system properties. The code to open the connection itself was fairly straightforward ('url' is a java.net.URL object);



However...another application has deployed into the same JVM where my application lives, and due to co-existence issues (insert long story here) I can no longer set these properties in the JVM. To try to just set the proxy on a connection by connection basis, I've changed my app code to use the Jakarta Commons project; I'm using the HttpClient class to create the connection, and then a HostConfiguration object to set the proxy details;



The proxy server/port are identical to the one I used before (when using HttpURLConnection, but I now get the following error from my server code when I tried to do the send;



Any help much appreciated,

Thanks, Greg
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: prob with Jakarta HttpClient & HostConfiguration
 
Similar Threads
"Connection timed out" with HttpClient.
Apache - HttpConnection
reason for EOF exception?
No trusted certificate found : when opeing a ssl connection from behind the proxy.
axis2 stops making https connections randomly... HELP!