cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ĦI need help please!

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 12 Apr 2005 11:33:30 +0200 (CEST)

On Tue, 12 Apr 2005, Gonzalo Astuy wrote:

> I have an aplicattion that send a xml file to a server; the problem which I
> have this server I must specify to him that the content is text/xml, can I
> do it?

Allow me to quote a line from the manual (describing CURLOPT_POST):

   You can override the default POST Content-Type: header by setting your own
   with CURLOPT_HTTPHEADER.

Here are the direct-links to the relevent docs:

   http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPOST

   http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTHTTPHEADER

Good luck!

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-12