cURL / Mailing Lists / curl-library / Single Mail


RE: curl_easy_perform sees no problem, ever.

From: Jason Pump <>
Date: Tue, 20 Sep 2005 14:46:01 -0700

Use curl_easy_getinfo() with CURLINFO_RESPONSE_CODE to retrieve the server
respose (200,403,etc). See

  -----Original Message-----
[]On Behalf Of Óscar Morales Vivó
  Sent: Tuesday, September 20, 2005 1:59 PM
  To: libcurl development
  Subject: curl_easy_perform sees no problem, ever.

  I'm using the curl_easy API to put files in WebDAV servers, and I'm
finding that even if the URL and/or authentication options are clearly
wrong, the call to curl_easy_perform returns a 0. Which is a problem since
I'd rather know it was wrong and display a message to the user indicating

  I wonder if this is a bug or a feature, or if I should set some extra
option to get errors or retrieve them from somewhere else (maybe a function
to get the http result?)

  Thanks in advance for your help:


  Óscar Morales Vivó

  Software Developer

  AEC Software, Inc.
Received on 2005-09-20