Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

warning from http modules?

by evinther (Initiate)
on Aug 03, 2012 at 08:43 UTC ( #985192=perlquestion: print w/ replies, xml ) Need Help??
evinther has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,
I'm a complete Perl newbie, so please bear with me ...
I've managed to create a simple script calling a simple website:
#-------------------------------------------- use HTTP::Request::Common qw(GET); use LWP::UserAgent; use strict; my $browser = LWP::UserAgent->new; $browser->credentials( 'myurl:8080', 'myrealm', 'myuser' => 'mypsw' ); my $response = $browser->get( 'http://myurl:8080/Organization', [ 'Depth' => '1' ] ); if ($response->is_success) { print $response->content; } else { print "Error: " . $response->status_line . "\n"; } #--------------------------------------------
... and i works and i get the expected reponse. However, when running the scipt in a Windows command prompti get a number of warnings (errors?) from the HTTP libs:
Use of uninitialized value $v in substitution (s///) at C:/strawberry/ +perl/site/lib/LWP/Protocol/http.pm line 182. Use of uninitialized value $v in concatenation (.) or string at C:/str +awberry/perl/site/lib/Net/HTTP/Methods.pm line 154. Use of uninitialized value $v in substitution (s///) at C:/strawberry/ +perl/site/lib/LWP/Protocol/http.pm line 182. Use of uninitialized value $v in concatenation (.) or string at C:/str +awberry/perl/site/lib/Net/HTTP/Methods.pm line 154.
Why is this, and does it matter?

using (32 bit):
LWP libwww v5.813
Perl strawberry v5.14.2.1

Thanks
Erik

Comment on warning from http modules?
Select or Download Code
Re: warning from http modules?
by Anonymous Monk on Aug 03, 2012 at 08:54 UTC
      ohhh.. thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://985192]
Approved by davido
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2014-04-19 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls