hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Sutton <adr...@intencha.com>
Subject Re: Proxy detection in the Sun plugin
Date Tue, 09 Mar 2004 22:13:56 GMT
On 10/3/04 2:36 AM, "Ortwin Gl├╝ck" <ortwin.glueck@nose.ch> wrote:

> Bruce McHaffie wrote:
>> It even parses
>> proxy.pac files correctly.
> I guess the browser parses the proxy.pac, not the Sun classes. AFAIK
> proxy.pac is written in JavaScript. That's the reason why HttpClient
> does not try to interprete proxy.pac files. Maybe one can use Rhino at
> some point to do that....

No actually Sun's classes parse the pac file.  Unfortunately it really
doesn't do it very well.  Some commonly used functions are effectively
no-ops but it seems to manage to work well enough in most cases.  There is
actually a similar API available in Java 1.3 but it's a different class with
a different interface, another change appears to have been made in 1.4.2
which breaks the method Bruce mentioned (at least, it breaks it sometimes
but not always).

Needless to say, this is a very unsupported feature.


Adrian Sutton

Kangaroo Point MarchFest is an annual festival of music, art, food and
culture, that aims to build community spirit and bring all types of
people together for a time of fun and entertainment.
Sat March 20th, midday till 10pm, at Kangaroo Point Uniting Church.

To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

View raw message