curl-library
Re: wrong code with proxy
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 2 Jan 2002 09:41:27 +0100 (MET)
Date: Wed, 2 Jan 2002 09:41:27 +0100 (MET)
On Wed, 26 Dec 2001, raoul cridlig wrote:
> When u download via proxy, the code returned by the curl_easy_perform(curl)
> function is 0, even if the remote file doesn't exist. It just fills the
> local file with Http Proxy server response... How to resolve ?
Gtting a non-existing file using HTTP is not something that libcurl returns
an error about. You should check the HTTP code if you want to know the status
for specific HTTP requests.
The HTTP code can be receivied with curl_easy_getinfo() after a request.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-01-02