in reply to How to set empty value for option in LWP-Get-Form
Errm, passing additional parameters to get sets them as headers in the HTTP request, not as parameters in the URI. Use URI to do stuff like that.
my $option3 = 42; my $uri = URI->new( 'http://host/index.php' ); $uri->query_form( option1 => '', option2 => 128, option3 => $option3, ); $response = $useragent->get( $uri );
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to set empty value for option in LWP-Get-Form
by 0x2A (Initiate) on Feb 25, 2006 at 11:05 UTC |