curl-users
CLI cURL: Cannot set content-type
Date: Wed, 6 Aug 2008 10:47:58 -0500
I am trying to POST an XML file but I am running into two problems:
1 - There are one or two FFFE double-byte values before the first
character of the POST
2 - the Content-Type in the header is always
application/x-www-form-urlencoded
3 - the POST is empty
I have tried --data @sendfile.xml, --data-ascii @sendfile.xml and
--data-binary @sendfile.xml, but the result is problems 1 & 2. I have
also tried --header Content-Type:"text/xml" as shown below, but while
the Content-Type is set correctly, the POST is empty (problem 3).
Here are the command line variants being used:
curl --header SOAPAction:"SendLeads" --data @sendfile.xml
http://hebe/crm/CustomPages/jrl.asp
curl --header SOAPAction:"SendLeads" --data-ascii @sendfile.xml
http://hebe/crm/CustomPages/jrl.asp
curl --header SOAPAction:"SendLeads" --data-binary @sendfile.xml
http://hebe/crm/CustomPages/jrl.asp
curl --header SOAPAction:"SendLeads" --header Content-Type:"text/xml"
--data @sendfile.xml http://hebe/crm/CustomPages/jrl.asp
curl --header SOAPAction:"SendLeads" --data @sendfile.xml --header
Content-Type:"text/xml" http://hebe/crm/CustomPages/jrl.asp
So please tell me, kind gentlemen, what the ____ am I doing wrong
here???
Thank you so very much...
Jack R. Lewis
Software Developer
U.S. Remodelers, Inc.
1-214-488-3331
jlewis_at_ushomesystems.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-06