hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce McHaffie <bruce.mchaf...@entrust.com>
Subject RE: Proxy detection in the Sun plugin
Date Thu, 11 Mar 2004 21:34:51 GMT
Hi Adrian, I hadn't heard about the problem in 1.4.2. Do you have any other
information about it?

Bruce.

-----Original Message-----
From: Adrian Sutton [mailto:adrian@intencha.com]
Sent: Tuesday, March 09, 2004 5:14 PM
To: Commons HttpClient Project
Subject: Re: Proxy detection in the Sun plugin


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.

Regards,

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.
http://www.soulpurpose.com.au/marchfest
=======================================================================


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

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


Mime
View raw message