perlnewb123 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use LWP::Debug qw(+); use LWP::UserAgent; use HTTP::Request::Common; my $url = 'http://test.test.com/webservice'; my $ua = new LWP::UserAgent(keep_alive=>1); $ua->credentials('test.test.com:80', '', "test\\user", 'pass'); $request = GET $url; print "--Performing request now...-----------\n"; $response = $ua->request($request); print "--Done with request-------------------\n"; if ($response->is_success) { print "It worked!->" . $response->code . "\n" } else { print "It didn't work!->" . $response->code . "\n" }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ISA Proxy and LWP
by ikegami (Patriarch) on Oct 17, 2008 at 20:30 UTC | |
by perlnewb123 (Sexton) on Oct 17, 2008 at 23:50 UTC | |
by Anonymous Monk on Oct 18, 2008 at 01:28 UTC | |
by perlnewb123 (Sexton) on Oct 18, 2008 at 01:53 UTC | |
by Anonymous Monk on Oct 18, 2008 at 02:03 UTC | |
by ikegami (Patriarch) on Oct 18, 2008 at 02:37 UTC | |
by perlnewb123 (Sexton) on Oct 18, 2008 at 03:15 UTC | |
by ikegami (Patriarch) on Oct 18, 2008 at 03:23 UTC | |
| |
by petr999 (Acolyte) on Oct 18, 2008 at 12:59 UTC | |
Re: ISA Proxy and LWP
by perlnewb123 (Sexton) on Oct 17, 2008 at 18:12 UTC |