cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET