in reply to Re: http get with perl, help needed
in thread http get with perl, help needed
I get an error back:use strict; use warnings; use LWP::UserAgent qw( ); use URI::Escape qw( uri_escape ); my $ua = LWP::UserAgent->new(); my $response = $ua->request(sprintf( 'http://test.test.com/ws/ws.asmx/DecryptText?text=%s&key=%s', uri_escape('SomeText'), uri_escape('SomeDecryptionKey'), )); if (!$response->is_success()) { die($response->status_line(), "\n"); } binmode STDOUT; print $response->content();
You need a request object, not 'http://test.test.com/ws/ws.asmx/Decryp +tText?text=SomeText&key=SomeDecryptionKey' at test.pl line 10
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: http get with perl, help needed
by ikegami (Patriarch) on Oct 16, 2008 at 21:06 UTC | |
by perlnewb123 (Sexton) on Oct 16, 2008 at 21:13 UTC | |
by perlnewb123 (Sexton) on Oct 16, 2008 at 22:03 UTC | |
by ikegami (Patriarch) on Oct 17, 2008 at 00:20 UTC | |
by Anonymous Monk on Oct 17, 2008 at 13:48 UTC | |
|