davidov0009 has asked for the wisdom of the Perl Monks concerning the following question:
By looking at the following from the documentation of the LWP::UserAgent module:
"$ua->post( $url, \%form, $field_name => $value, ... )"
it seems to me that I can pass BOTH a hashref AND a list of name value pairs to the SAME form. Is that correct?
I am currently trying something like this:
$response = $browser->post( 'http://site.com/form.php', \%form, 'val1' => 1, 'val2' => 0, @header);This, however, doesn't seem to work. Any ideas?
use strict; use CGI;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP post method, mutliple parameters
by merlyn (Sage) on Dec 22, 2007 at 21:52 UTC | |
by davidov0009 (Scribe) on Dec 23, 2007 at 03:14 UTC | |
by davidov0009 (Scribe) on Dec 23, 2007 at 04:53 UTC | |
by merlyn (Sage) on Dec 23, 2007 at 11:37 UTC | |
by davidov0009 (Scribe) on Dec 24, 2007 at 04:46 UTC |