cURL / Mailing Lists / curl-users / Single Mail

curl-users

Setting Content-Type

From: Gary Woodley <gary_at_plsoft.co.uk>
Date: Fri, 17 Sep 2010 11:39:36 +0100

Hi,

 

I am using curl to send an xml and then write the response using -K
eDocAPIConfig.TXT with the config file:-

 

url = http://edoc.codegate.co.uk:9640/edocapi/rest/submitwastetransfer

data-binary @eDocAPIXML.xml

output eDocAPIReply.html

trace-ascii trace.log

 

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?

 

Thanks

 

Gary

-------------------------------------------------------------------
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