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 :
Then, define your proxy by setting the environment variable http_proxy before launching the client :sub new { my $class=shift; my $self={}; $self->{ua}=new LWP::UserAgent; $self->{ua}->env_proxy(); bless $self, $class; return $self; }
(LWP::UserAgent)http_proxy=http://your.proxy.net:8001 export http_proxy
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: PerlMonksChat module via proxy
by Courage (Parson) on Jun 11, 2002 at 18:13 UTC |
In Section
Perl Monks Discussion