Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy authentication header evaluation fails #14

Open
el-bastard0 opened this issue Sep 24, 2024 · 0 comments
Open

Proxy authentication header evaluation fails #14

el-bastard0 opened this issue Sep 24, 2024 · 0 comments

Comments

@el-bastard0
Copy link

The proxy I'm currently using is returning a HTTP 407 and the Proxy-Authenticate header looks like follows:

Proxy-Authenticate:[Negotiate Basic realm="Squid proxy-caching <omitted...>"]

The rclient interprets the header value as "Negotiate" which contains neither "NTLM" nor "Basic". This means that no authentication is performed.

ntlmchall := resp.Header.Get("Proxy-Authenticate")
log.Print(ntlmchall)

// output: Negotiate
// output: Unknown authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant