cURL / Mailing Lists / curl-library / Single Mail


POST and headers

From: Garrett Rooney <>
Date: Thu, 29 Mar 2001 14:03:45 -0500

(please CC me on any replies, as i do not subscribe to this mailing list)

I don't know if this is possible, as no way to do it was imediately obvious
from the documentation, but is there a way to make libcurl send an http (https
actually, but that doesn't really matter at the moment) POST without causing
it to insert extra headers? right now, when i set the CURLOPT_POST option it
inserts the following headers:

Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Type: application/x-www-form-urlencoded

I don't want the pragma or accept headers at all, although i can live with
sending them, but the Content-Type is the real problem. I've overridden the
Content-Type header myself, with a CURLOPT_HTTPHEADER option, and i need it to
be set to something other than application/x-www-form-urlencoded. is there
anything i can do to change this behavior?

(for the curious, i'm using curl to impliment xmlrpc over https, and i seem to
be getting messed up because the server is expecting a text/xml content type,
and curl is sending application/x-www-form-urlencoded.)



garrett rooney                     Unix was not designed to stop you from       doing stupid things, because that would      stop you from doing clever things.
Curl-library mailing list
Received on 2001-03-29