in reply to Re: ISA Proxy and LWP
in thread ISA Proxy and LWP
Script is:LWP::UserAgent::new: () --Performing request now...----------- LWP::UserAgent::request: () LWP::UserAgent::send_request: GET http://test.test.com/webservices/tes +t.asmx?op=DecryptText?text=%FA%4%76%B%22%81%7E%0&key=TEST LWP::Protocol::http::request: () LWP::Protocol::http::request: Keep the http connection to test.test.co +m:80 LWP::UserAgent::request: Simple response: Unauthorized --Done with request------------------- It didn't work!->401
#!/usr/bin/perl -w use lib "/u/user/libwww-perl-5.818/lib"; push(@INC, '/u/user/libwww-perl-5.818/lib'); use LWP::Debug qw(+); use LWP::UserAgent; use HTTP::Request::Common; my $url = 'http://test.test.com/webservices/test.asmx?op=DecryptText?t +ext=%FA%4%76%B%22%81%7E%0&key=TEST'; my $ua = new LWP::UserAgent(keep_alive=>1); $ua->credentials('test.test.com:80', 'test', "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^3: ISA Proxy and LWP
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 | |
Re^3: ISA Proxy and LWP
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 perlnewb123 (Sexton) on Oct 18, 2008 at 04:38 UTC | |
by Anonymous Monk on Oct 18, 2008 at 06:37 UTC | |
Re^3: ISA Proxy and LWP
by petr999 (Acolyte) on Oct 18, 2008 at 12:59 UTC |