Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

prob with Jakarta HttpClient & HostConfiguration

Greg A Watson
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 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 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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic