cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: bug in --fail with --proxy-ntlm

From: David Byron <DByron_at_everdreamcorp.com>
Date: Thu, 22 Apr 2004 10:30:36 -0700

On Thu, 22 Apr 2004, David Byron wrote:

> I've found a small bug with the --fail and authentication
> stuff I added a few weeks ago. Turns out that if you
> specify --proxy-ntlm and communicate with a proxy that
> requires basic authentication, the proxy properly returns a
> 407, but the failure detection code doesn't realize it
> should give up, so curl returns with exit code 0.
>
> I'm looking into it now and hope to have a test case and a
> patch to fix it in a few hours. Since it seems like we're
> inching close to a release, I thought I'd spread the word
> now.

Here's the testcase that fails. I'm starting to refamiliarize myself with
the data structures involved here, but if someone else can point me to the
right info to consider in Curl_http_should_fail before I figure it out...

Thanks much.

-DB

  • application/octet-stream attachment: test162
Received on 2004-04-22