cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending Https request over proxy aborts

From: Ben Noordhuis <info_at_bnoordhuis.nl>
Date: Thu, 24 Mar 2011 23:09:48 +0100

On Thu, Mar 24, 2011 at 22:17, taher daryani <daryanit_at_gmail.com> wrote:
> I am using libcurl to send  http/https requests through a proxy. It works
> fine for http requests but it returns error 407 for https requests if I use
> CURLAUTH_ANY. If I use CURLAUTH_BASIC then the request would succeed.

> * Proxy CONNECT aborted
> * Closing connection #0
> * Failure when receiving data from the peer

Apparently he proxy rejects the CONNECT request. With CURLAUTH_BASIC
the request succeeds but not with CURLAUTH_ANY? Are you sure that you
are sending the right credentials? The Proxy-Authenticate header
decodes to "user:pas۳ord". Looks like an Arabic ordinal.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-24