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>


Reply via email to