cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: posting

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 18 Sep 2006 23:28:07 +0200 (CEST)

On Mon, 18 Sep 2006, Francisco Alves wrote:

> hi, I´m trying to post something like this with curl:
>
> <form method=POST name="frmChoice" action="host.asp?num=98776&ck=987" >
> <INPUT name=chkIn type=checkbox value=1 >
> <INPUT name=chkPart type=checkbox value=1 >
>
> but when I set the url with host.asp?num=98776&ck=987, it seems that
> CURLOPT_POSTFIELDS has no efect. How can I mix the two forms ?

The 'action' part is what goes into the URL, and the <input> parts are what
goes into the post data that you set with CURLOPT_POSTFIELDS.

They're not really "two forms", but rather just a POST to a URL.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-18