R
Roger
Hi,
I wrote a small program that establishes an HttpURLConnection to
extract data from a web site. When I came to test it at a customer
site - a Windows site, I discovered that a) I was sitting behind a
proxy server and b) that the proxy server required NTLM
authentication. A bit of googling gave me the answer to both problems
and everything is working fine.
However, this now begs two questions. Firstly is it possible to
programatically determine if my program is running through a proxy
server or is this a matter for a config file. Secondly, having
established the answer to the first question is it possible to
programatically determine the authentication mechanism being used by
the proxy server, particularly given that NTLM is windows specific or
again, is this best achieved through a config file?
Regards
Roger
I wrote a small program that establishes an HttpURLConnection to
extract data from a web site. When I came to test it at a customer
site - a Windows site, I discovered that a) I was sitting behind a
proxy server and b) that the proxy server required NTLM
authentication. A bit of googling gave me the answer to both problems
and everything is working fine.
However, this now begs two questions. Firstly is it possible to
programatically determine if my program is running through a proxy
server or is this a matter for a config file. Secondly, having
established the answer to the first question is it possible to
programatically determine the authentication mechanism being used by
the proxy server, particularly given that NTLM is windows specific or
again, is this best achieved through a config file?
Regards
Roger