Re: HttpURLConnection, Proxies and Authentication
From: Chris Smith (cdsmith_at_twu.net)
Date: 07/13/04
- Next message: Dave: "Struts, How to get at bean properties"
- Previous message: Charles Fox: "How to quickly print arrays?"
- In reply to: Roger: "HttpURLConnection, Proxies and Authentication"
- Next in thread: Daniel Hagen: "Re: HttpURLConnection, Proxies and Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 13 Jul 2004 07:17:58 -0600
Roger wrote:
> 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?
There are two standards out there, called WPAD and PAC, which can be
combined to discover the correct proxy settings on large networks if the
network administrator has set things up correctly. Otherwise, you'll
have to rely on the user knowing their proxy config. If there is no
WPAD or PAC on the network, that means that the user must have manually
configured their proxy settings for IE and such, too, so you can ask
them to look there.
It does make sense, by the way, to support PAC but not WPAD... however,
WPAD implies PAC so that the other direction doesn't work. Implementing
PAC requires an embedded JavaScript interpreter such as
http://www.mozilla.org/rhino/.
-- www.designacourse.com The Easiest Way to Train Anyone... Anywhere. Chris Smith - Lead Software Developer/Technical Trainer MindIQ Corporation
- Next message: Dave: "Struts, How to get at bean properties"
- Previous message: Charles Fox: "How to quickly print arrays?"
- In reply to: Roger: "HttpURLConnection, Proxies and Authentication"
- Next in thread: Daniel Hagen: "Re: HttpURLConnection, Proxies and Authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|