benoitc / hackney

simple HTTP client in Erlang
Other
1.33k stars 427 forks source link

proxy-authenticate support #115

Open w2l0o5 opened 10 years ago

w2l0o5 commented 10 years ago

Hackney just support basic proxy-authenticate, but this is not enough. We know that many corporation proxy server do NTLM or Kerberos or Negotiate proxy authenticate, rather than basic authenticate. So maybe you can consider add a option {proxy-auth-type}, selectivily make a request header.

Header = [{<<"Proxy-Authorization">>, <<ProxyAuthType/binary, Credentials/binary>>}]

Or can implement automatically proxy authenticate, but that would be quite complicated. ;) This is just my personal thoughts!

benoitc commented 9 years ago

mmm good idea!

I think it implies to find the right way to handle the different way to negociate with the proxy, so a proxy can be just a backend. WIll have a look