cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: any specific error for "proxy authentication failed"?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 Sep 2006 10:37:18 +0200 (CEST)

On Fri, 15 Sep 2006, Armel Asselin wrote:

> I could not find a specific error when the proxy authentication failed (I'm
> doing FTP tunneling over an HTTP proxy). I just get CURLE_RECV_ERROR.
> Without such a code, i cannot popup a 'Proxy login' box or simply tell why
> it failed. would it be a good idea to submit a patch for that?

There's no specific error when normal HTTP authentication fails either, since
the error codes are (with some rare exceptions) saved for transfer errors and
as long as the transfer went fine it isn't considered a libcurl error but a
higher level error that should be extracted with curl_easy_getinfo() or
similar.

In this case, I figure you getting a 407 back would be indication enough,
won't it?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-15