Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 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= 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
    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?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-01-21 12:11 GMT
Find Nodes?
    Voting Booth?