cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Response code 0 from curl_easy_perform

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Fri, 24 Jul 2009 12:44:55 -0500

On Jul 24, 2009, Michael Leong wrote:

> cStatus = curl_easy_getinfo (curl, CURLINFO_HTTP_CODE, responseCode);
> printf("\nResponse Code, curlDoHTTP #1: %d\n", *responseCode);
> ...
> (responseCode is an int*)

I think you will want something more like this:

  long responseCode;
  cStatus = curl_easy_getinfo (curl, CURLINFO_HTTP_CODE, &responseCode);
  printf("\nResponse Code, curlDoHTTP #1: %ld\n", responseCode);

 - Jeff
Received on 2009-07-24