in reply to :Problem with Parsing the Proxy Auto Configure File

$ua->proxy('http',$res);

The documentation suggests you should call the ->proxy method on the result object to get the URI of the proxy:

if ($res->proxy) { $ua->proxy(http => $res->proxy); }

Replies are listed 'Best First'.
Re^2: :Problem with Parsing the Proxy Auto Configure File
by codenamemessiah (Initiate) on Feb 24, 2011 at 03:48 UTC

    Hey Thanks very much.This works. I think I didn't read documentation well.

      hi, when i use HTTP::Proxypac, i get the below error "neither the JavaScript module nor the JS module seems to be available....." please let me know how to proceed.

        The error message should read "neither the JavaScript module nor the JE module seems to be available" (emphasis mine). This is a typo in HTTP::ProxyPAC.

        Install either JavaScript or JE, after reading the HTTP::ProxyPAC documentation.

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)