in reply to PerlMonksChat module via proxy
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 |