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
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