cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP header

From: Girish Dharmapurikar <girishd_at_dh.cit.alcatel.fr>
Date: Wed, 03 Apr 2002 11:10:44 +0200

It answers partially. what i'm interested is do I have to create / construct the
header. i.e. what the "internal header" contents? For e.g. I can change the
fields of header by CURLOPT_HTTPHEADER, but Before changing it can I see what it
has?

thanks in advance,
Girish

Daniel Stenberg a écrit :
>
> On Tue, 2 Apr 2002, Girish Dharmapurikar wrote:
>
> > I have a doubt about the header part used to do HTTP-POST (see below). Is
> > it filled by CURL lib or it is to be filled in the "string to send" in the
> > curl_easy_setopt(curl_handle,CURLOPT_POSTFIELDS,"string to send") ??
>
> libcurl can't possibly know what data you want to post, so therefore you must
> provide it. Yes, CURLOPT_POSTFIELDS should be set to point to the data you
> want to post. If the data is binary (may contain zeroes) or if you want to
> avoid libcurl doing a strlen() on the data, set the size of the data to post
> with CURLOPT_POSTFIELDSIZE.
>
> Was that the info you were looking for?
>
> --
> Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-04