> -----Original Message-----
> From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 18, 2004 21:04
> To: Adamiec, Larry
> Cc: [EMAIL PROTECTED]
> Subject: Re: form posting
> 
> 
> Adamiec, Larry wrote:
> > 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,
> 

The missing '[' was a typo error in my post to the list.

> my $res = $ua->request(POST, 'http://66.158.0.80/test2.asp', [ 
> $query->Vars ]);

This line works and fixed this trouble.  

> 
> Also not sure, but I believe you need an operator after POST, 
> check the 
> docs for that.
> 

>From what I read, there isn't any operator after POST and line works so I believe an 
>operator isn't needed.

Thank you for your help.

Larry

> <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>


Reply via email to