... 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 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"; } #--------------------------------------------
Why is this, and does it matter?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.
using (32 bit):
LWP libwww v5.813
Perl strawberry v5.14.2.1
In reply to warning from http modules? by evinther
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |