Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: PerlMonksChat module via proxy

by choocroot (Friar)
on Jun 11, 2002 at 18:01 UTC ( #173597=note: print w/ replies, xml ) Need Help??


in reply to PerlMonksChat module via proxy

PerlMonks module does not handle proxies, so you need to edit the PerlMonks.pm file, and add a $self->{ua}->env_proxy() call in the new() method, like this :

sub new { my $class=shift; my $self={}; $self->{ua}=new LWP::UserAgent; $self->{ua}->env_proxy(); bless $self, $class; return $self; }
Then, define your proxy by setting the environment variable http_proxy before launching the client :
http_proxy=http://your.proxy.net:8001 export http_proxy
(LWP::UserAgent)


Comment on Re: PerlMonksChat module via proxy
Select or Download Code
Re: Re: PerlMonksChat module via proxy
by Courage (Parson) on Jun 11, 2002 at 18:13 UTC
    Thank you a lot, I have no experience with libwww modules, so, while usually I tend to go inside module and look by myself, in this particular case I'll follow your advice.

    How do you think, isn't it a good idea to /msg your code to author, so that proxies support will be built in?

    Courage, the Cowardly Dog.
    PS. Something fishy is going on there, or my name is Vadim Konovalov. And it's not.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-12-28 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls