cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multi-Part Post or Single Post ??

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 8 Sep 2004 18:45:35 +0200 (CEST)

On Wed, 8 Sep 2004, Ram wrote:

> After getting all the values. i need to allocate a huge buf of 100 * 4 = 400
> KB + space for the names and then use set_easy_set_opt (CURLOPT_POSTFIELDS)
> and send the buf.
>
> This can be done.
>
> But, i read about multi-post.

Mutipart formpost, RFC1867. They are not easily interchangable at your will.
The server mostly expects and works with only one of the kinds.

> This can be done. but the reciever will get the each name and value
> seperated by some mime info or some other info.

Yes, that's how multipart formposts work.

> But can i do the above without any header (mime info or any other info).

Yes, by doing an ordinary POST as you said first.

> that is the reciever should not know if i have done multi-post or a single
> post.

It must know or figure it out.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-08