Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Automate your PerlMonks activities

by strider corinth (Friar)
on Dec 02, 2002 at 17:27 UTC ( #216980=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Automate your PerlMonks activities
in thread Automate your PerlMonks activities

True, but the script needs to be told to use the proxy. For pm_login, add this line between lines 18 and 24:

$ua->proxy( 'http', $ENV{ HTTP_PROXY } ) if $ENV{ HTTP_PROXY };
I'm sure similar additions can be made to each script that needs it to add proxy functionality.
--
Love justice; desire mercy.


Comment on Re: Re: Re: Automate your PerlMonks activities
Download Code
Re: Re: Re: Re: Automate your PerlMonks activities
by grantm (Parson) on Dec 02, 2002 at 19:57 UTC

    You're right of course, you do need to tell the UserAgent to use the proxy, but if you use the standard variable names (all lower case) then you simply say:

    $ua->env_proxy;
Re: Re: Re: Re: Automate your PerlMonks activities
by jdporter (Canon) on Dec 03, 2002 at 04:36 UTC
    You shouldn't need to do this. The module automatically calls $ua->env_proxy;
    You should need merely to   export http_proxy=http://host:port
    or   setenv http_proxy http://host:port
    You might want to retrieve the latest version, too. It has some nice new features.

    jdporter
    ...porque es dificil estar guapo y blanco.

      Hmm. I will get the latest version. In the pre-first-tarball one I tried, the only way it'd work with the proxy was to add the line I mentioned to the cookie script and at least one other, though I can't remember what it was offhand.

      PS: is there a changelog anywhere?
      --
      Love justice; desire mercy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://216980]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2014-09-24 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (245 votes), past polls