curl-users
Re: CLI cURL: Cannot set content-type
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 7 Aug 2008 09:22:41 +0200 (CEST)
Date: Thu, 7 Aug 2008 09:22:41 +0200 (CEST)
On Wed, 6 Aug 2008, Jack Lewis wrote:
> I am trying to POST an XML file but I am running into two problems:
> curl --header SOAPAction:"SendLeads" --data @sendfile.xml --header
> Content-Type:"text/xml" http://hebe/crm/CustomPages/jrl.asp
Let me suggest:
curl --header "SOAPAction: SendLeads" --data-binary @sendfile.xml --header
"Content-Type: text/xml" http://hebe/crm/CustomPages/jrl.asp
And for working out exactly what curl sends/sent, use "--trace-ascii
tracefile".
-- / daniel.haxx.se ------------------------------------------------------------------- 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.htmlReceived on 2008-08-07