Hi James, There should be no problem going by your code and assuming you've the environment variables setup as indicated. What are the contents of $a->content()? Are you getting a error code such as 501, 404? Also, you might want to verify the version of WWW::Mechanize that is installed in your system. The latest version is 0.72 and you install it through CPAN or PPM. If you're using PPM then try adding the bribes ppm to your repository (http://www.bribes.org/perl/ppm). I believe it more up-to-date than the ActiveState PPM.
Rajesh > -----Original Message----- > From: Taylor James [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 11, 2004 8:29 AM > To: '[EMAIL PROTECTED]' > Subject: WWW::Mechanize through a proxy? > > > > Hi all, > > Has anyone here sucessfully used WWW::Mechanize through a > proxy server? This > always fails for me. On Win32. > > Cheers, > > James > > ######################################################## > #! /usr/bin/perl > use strict; > use WWW::Mechanize; > > my $a = WWW::Mechanize->new(); > my $url = 'http://www.yahoo.com/'; > > $a->env_proxy() ; # This should work as far as I can tell! > # That is to say, I have the correct > # environment variables set up: > # HTTP_proxy_pass secret > # HTTP_proxy_user jamestaylor > # HTTP_proxy http://10.0.0.1:80/ > $a->get($url); > > my $content = $a->content(); > print "$content \n"; > > ######################################################## > -- > > > > > > The information contained in this e-mail is intended for the > recipient or > entity to whom it is addressed. It may contain confidential > information that > is exempt from disclosure by law and if you are not the > intended recipient, > you must not copy, distribute or take any act in reliance on > it. If you have > received this e-mail in error, please notify the sender > immediately and > delete from your system. > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > >