cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Re[4]: Sessions in CURL

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Jun 2001 13:48:03 +0200 (MET DST)

On Tue, 12 Jun 2001, Vladimir wrote:

> I am trying to send so kind of form and I cannot send it.
>
> Something like
> <form name="Form" method="post"
> action="index.asp?UserName=something&somedata=somedata">
> <input type="radio" name="Type" value="Common" onClick="document.Form.submit()">
> <input type="radio" name="Type" value="Other" onClick="document.Form.submit()">
>
> That is all
> Itry to send from CURLOPT_POSTFIELDS
> $request="UserName=something&somedata=somedata";

> But no results. Any thougth???

Of course I have!

The "action" is the URL to use, which in this case tells you to POST to the
url "http:/blablabla/index.asp?UserName=something&somedata=somedata".

The CURLOPT_POSTFIELDS should then contain "Type=Common" or "Type=Other",
depending on which button you want it to look like you're pressing.

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
_______________________________________________
Curl-and-php mailing list
http://curl.haxx.se/
Received on 2001-06-12