cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Setting Content-Type

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 17 Sep 2010 20:00:00 +0200 (CEST)

On Fri, 17 Sep 2010, Gary Woodley wrote:

> I have been asked if I can transmit the file in using POST which I
> understand I am but wants the Content-Type as Application/XML. What changes
> to I need to perform?

Add a line like this to the config file:

header = "Content-Type: Application/XML"

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-17