cURL / Mailing Lists / curl-users / Single Mail


[ curl-Bugs-845941 ] fetching https, curl returns code 56 on 407 from proxy

From: <>
Date: Thu, 20 Nov 2003 08:53:40 -0800

Bugs item #845941, was opened at 2003-11-20 11:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: libcurl
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Josh Kapell (jkapell)
Assigned to: Daniel Stenberg (bagder)
Summary: fetching https, curl returns code 56 on 407 from proxy

Initial Comment:
libcurl returns error CURLcode 56 (CURLE_RECV_ERROR)
on 407 from proxy when fetching https resource.

libcurl version: 7.10.8
os: RedHat 7.3 (kernel 2.4.20)

When fetching an https resource from a proxy that
requires basic authentication curl returns error CURLcode
56 (CURLE_RECV_ERROR) when the proxy responds with
a 407 (proxy authentication required). This is
problematic as curl doesn't provide the 407 header
making it impossible to extract the challenge information
necessary (auth method & realm) to re-fetch. It seems
that curl should return CURLE_OK and then provide the
407 header & body which would be consistent with curls
behavior given an http url.

I've attached some code that will reproduce the bug but
you'll need to specify a proxy server requiring basic




You can respond by visiting:

This email is sponsored by: Giveback Program.
Does help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here:
Received on 2003-11-20