Using Jakarta HTTPClient StrictSSLProtocolSocketFactory with proxy

R

Rachel

Hi,

I'm having a problem using the StrictSSLProtocolSocketFactory with a
proxy server. The machine that the program runs on does not resolve
hostnames outside of the network, and so the verifyHostname function
throws an UnknownHostException.

Does anyone know how to change the code so that the hostname is
resolved using the proxy server? The line that throws the exception is:

InetAddress addr = InetAddress.getByName(hostname);

Failing that, how much less secure would my application be if I just
took that line out? The code doesn't compare the ip address to anything
once it's got it.

Using the IP address rather than the hostname is not an option I'm
afraid.


Thanks for any help

Rachel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top