cURL / Mailing Lists / curl-library / Single Mail

curl-library

HTTP header

From: Girish Dharmapurikar <girishd_at_dh.cit.alcatel.fr>
Date: Tue, 02 Apr 2002 16:39:22 +0200

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") ??

Any help would be appreciated.

Thanks in advance,
Girish

                        ****HEADER ****
                           POST /RPC2 HTTP/1.0
                           User-Agent: Frontier/5.1.2 (WinNT)
                           Host: betty.userland.com
                           Content-Type: text/xml
                           Content-length: 181
                        ****HEADER END****

                           <?xml version="1.0"?>
                           <methodCall>
                              <methodName>examples.getStateName</methodName>
                              <params>
                                 <param>
                                    <value><i4>41</i4></value>
                                    </param>
                                 </params>
                              </methodCall>
Received on 2002-04-02