cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Can't connect: how to find out why ?

From: Vincent Penquerc'h <Vincent.Penquerch_at_artworks.co.uk>
Date: Tue, 8 Oct 2002 16:56:15 +0100

> VERBOSE to 1 is the only available extra info here. Ah, no,
> you should use
> CURLOPT_ERRORBUFFER to get the error text as well, it'll

Doesn't get set at all :/

  char c_error[CURL_ERROR_SIZE];
  strcpy(c_error,"<pristine>");
[...]
  code=curl_easy_setopt(data->handle,CURLOPT_ERRORBUFFER,c_error);
  if (code!=CURLE_OK) goto alogg_start_streaming_url_error;
[...]
  printf("curl error: %s\n",c_error);

About to connect() to www.kernel.org:80
Closing connection #0
curl error: <pristine>
Error opening http://www.kernel.org/

I've also commented out the block size setting, to no avail.
Well, if you don't spot newbie mistakes in what I sent, I guess
I'll go the printf way.

Thanks,

-- 
Vincent Penquerc'h 
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-08