cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: POST variables without multipart/formdata

From: Andy Hobbs <andy_at_hobbs.uk.net>
Date: Fri, 03 Dec 2004 13:54:05 +0000

Hi,

You can do a post that isn't multipart by using

code = curl_easy_setopt(handle, CURLOPT_POSTFIELDS, postData);

post data must be URL encoded

Andy

On Fri, 2004-12-03 at 13:02, Gonzalo Diethelm wrote:
> Is it possible, using curl_formadd(), to create a simple form (ENCTYPE =
> "text/plain") with POST data in it? The documentation says:
>
> curl_formadd() is used to append sections when building a
> multipart/formdata HTTP POST
>
> Thanks,

-- 
Andy Hobbs <andy_at_hobbs.uk.net>
Received on 2004-12-03