noniekimp has asked for the wisdom of the Perl Monks concerning the following question:
I even tried changing to this syntax for the username and password:$filename = 'file.zip'; # for example use LWP::UserAgent; use HTTP::Request::Common; my $url = "http://www.domain.com/$filename"; my $ua = new LWP::UserAgent(keep_alive=>1); $ua->credentials('www.domain.com:80', '', 'user', 'pass'); $request = GET $url; $response = $ua->request($request); print "response:" . $response->code . "\n";
Not sure what else to do here. Need help!$ua->credentials('www.domain.com:80', '', 'user'=>'pass');
janitored by ybiC: Balanced <code> tags around codeblock, as per Monastery convention
|
|---|