Hi All, Here I am again asking for help from the wonderful folks ...
I am running perl 5.8.0 on windows NT machine. I am trying to run a simple script using WWW::Mechanize through a proxy server. I have setup the HTTP_proxy, HTTP_proxy_pass and HTTP_proxy_user environment variables and PPM works through the proxy server. But my script below fails and returns the output as shown at the bottom. Could someone Please let me know what I am doing wrong !!. Thanks, Raghu #! /usr/bin/perl use strict; use WWW::Mechanize; my $a = WWW::Mechanize->new(); my $url = 'http://www.yahoo.com/'; $a->env_proxy() ; $a->get($url); my $content = $a->content(); print "$content \n"; die ("End of Pgm \n"); ====================================================== OUTPUT from the script ====================================================== <HTML><HEAD><TITLE>Proxy authorization required</TITLE></HEAD> <BODY><H1>Proxy authorization required</H1> Username authentication is required for using this proxy. Either your browser does not perform proxy authorization, or your authorization has failed. </BODY></HTML> ====================================================== __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]