in reply to Creating A Request
I think this is the correct usage, but it's untried. Check out the man pages for HTTP::Request and HTTP::Headers for more detail.use HTTP::Headers; my $h = HTTP::Headers->new(); $h->header('Content-Length' => 61 ); $h->header('Content-Type' => 'application/x-www-form-urlencod ed'); my $request = HTTP::Request->new( 'POST', 'http://www.perl.org/survey. +cgi', $h ); my $response = $ua->request( $request ); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Creating A Request
by Anonymous Monk on Nov 11, 2002 at 02:57 UTC |