cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLOPT_URL returning FALSE

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 16 Dec 2009 17:02:01 +0100 (CET)

On Wed, 16 Dec 2009, nitin.mittal_at_rsa.com wrote:

Please guys, stop the top-posting insanity. Your mails are next to impossible
to read and understand!

> Even after putting the changes (below) as suggested by you, I am not able to
> get anything from server.

You get *nothing* ? So libcurl's verbose output is completely silent? Somehow
I don't believe that. What exactly does it say?

I would also suggest you either try CURLOPT_DEBUGFUNCTION or use wireshark to
get to see exactly what libcurl sends and receives over the network.

> headers = curl_slist_append(headers, "type: text/xml");

Really? It looks very odd to me.

> curl_easy_perform(mCurl);

Why doesn't this check the return code? What does curl_easy_perform() return
for you?

> std::string strHttpContent="<s:Envelope
> xmlns:s="http://www.w3.org/2003/05/soap-envelope"
> xmlns:a="http://schemas.xmlsoap.org/ws/2004/08/addressing"

The unescaped quotes in that flow makes me suspect the XML will end up very
wrong.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-16