I am still trying to post form data from a secure UNIX web server to an ASP script on a windows server.
The following code works:
<snip>
The problem I having is this code requires me to specify each form field when I attempt to post to the ASP script. I would like to be able to grab all the fields and their values from the web form and pass them to the ASP script as an array.
I changed the line my $res = $ua->request(POST 'http://66.158.0.80/test2.asp', [ email =>
$query->param('email')]);
to
my $res = $ua->request(POST 'http://66.158.0.80/test2.asp', @::query]);
I think this is being made more difficult than necessary. Also note that you have a missing '[' in the above, and you need the keys as well as the values, how about,
my $res = $ua->request(POST, 'http://66.158.0.80/test2.asp', [ $query->Vars ]);
Also not sure, but I believe you need an operator after POST, check the docs for that.
<snip>
Any all help will be appreciated.
Thanks
Larry
Helps?
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>