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:[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> 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:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to