http://www.perlmonks.org?node_id=173597


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)

Replies are listed 'Best First'.
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.