cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: anyauth for proxy authentication

From: Isaac Boukris <iboukris_at_gmail.com>
Date: Mon, 22 Jun 2015 22:27:50 +0300

Hi,

On Mon, Jun 22, 2015 at 1:59 PM, Bogdan Harjoc <harjoc_at_gmail.com> wrote:
> I can't seem to make curl autodetect that the proxy I specified with
> --proxy-user requires Digest authentication. It works if I specify
> --proxy-digest, but if I just say --anyauth it gives up after the first 407
> response.
>
> The command is:
>
> curl --proxy 10.10.0.1:3128 --anyauth --proxy-user user:test --fail
> http://example.com
>
> With wireshark I see curl sends this in the very first request:
>
> Proxy-Authorization: Basic dXNlcjp0ZXN0
>
> Instead, from the docs it seems it should not send proxy-auth at all, and
> wait for the 40x response, which contains this:
>
> Proxy-Authenticate: Digest realm="secret",
> nonce="CemHVQAAAACALrv8qn8AAHRyugkAAAAA", qop="auth", stale=false
>
> Is there a way to resolve this without source code changes ?

Perhaps you are looking for "--proxy-anyauth"?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-06-23