cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: CLI cURL: Cannot set content-type

From: Jack Lewis <jlewis_at_ushomesystems.com>
Date: Thu, 7 Aug 2008 08:55:16 -0500

Actually, I found that the order of parameters does matter:

Curl --insecure --data_at_sendfile.xml --header SOAPAction:"SendLeads"
--header Content-Type:"text/xml" http://hebe/crm/CustomPages/jrl.asp

No idea why, but it works...

Thanks - Jack

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of
curl-users-request_at_cool.haxx.se
Sent: Thursday, August 07, 2008 5:00 AM
To: curl-users_at_cool.haxx.se
Subject: curl-users Digest, Vol 36, Issue 9

Send curl-users mailing list submissions to
        curl-users_at_cool.haxx.se

To subscribe or unsubscribe via the World Wide Web, visit
        http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
or, via email, send a message with subject or body 'help' to
        curl-users-request_at_cool.haxx.se

You can reach the person managing the list at
        curl-users-owner_at_cool.haxx.se

When replying, please edit your Subject line so it is more specific
than "Re: Contents of curl-users digest..."

Today's Topics:

   1. Re: CLI cURL: Cannot set content-type (Daniel Stenberg)
   2. Re: Help with Error 60 from Yahoo Store Hosting (Daniel Stenberg)

----------------------------------------------------------------------

Message: 1
Date: Thu, 7 Aug 2008 09:22:41 +0200 (CEST)
From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: CLI cURL: Cannot set content-type
To: the curl tool <curl-users_at_cool.haxx.se>
Message-ID: <alpine.LRH.1.10.0808070921130.18725_at_yvahk3.pbagnpgbe.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

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
------------------------------
Message: 2
Date: Thu, 7 Aug 2008 09:33:33 +0200 (CEST)
From: Daniel Stenberg <daniel_at_haxx.se>
Subject: Re: Help with Error 60 from Yahoo Store Hosting 
To: the curl tool <curl-users_at_cool.haxx.se>
Message-ID: <alpine.LRH.1.10.0808070931150.18725_at_yvahk3.pbagnpgbe.fr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
On Wed, 6 Aug 2008, darwinl_at_aol.com wrote:
> Thanks Daniel. I need to clarify before I go back to Yahoo tech
support. My 
> online store is hosted on their servers. One feature they offer is a 
> real-time delivery of our orders to our own server.  I am assuming
Yahoo is 
> using libcurl in a script to do this.  When I recently renewed my SSL
I 
> received a new certificate from Comodo from a CA Root different than
the one 
> I had before.  Nothing else has changed on my server's side except for
the 
> new SSL certificate.  Now I am getting e-mails from Yahoo stating the
orders 
> are failing to post because of error 60.
Ok, that sounds as if they use (lib)curl to do the POST to your server
and 
that the cacert bundle they use doesn't have the cert for the CA of the
cert 
your server uses now.
That needs to be fixed in the end that uses (lib)curl.
-- 
  / daniel.haxx.se
------------------------------
_______________________________________________
curl-users mailing list
curl-users_at_cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
End of curl-users Digest, Vol 36, Issue 9
*****************************************
-------------------------------------------------------------------
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-07