Skip to content

Proxy authentication does not work for HTTPS. #132

@vasiliyl

Description

@vasiliyl

When connecting to HTTPS via proxy Proxy-Authorization header is not sent.
Proxy authentication for HTTPS should work the same way as for HTTP.

I'm behind the proxy with authentication right now, https_proxy environment variable is set to http://user:pass@proxy:3128, and here is what I get with stack:

$ stack build        
Downloading nightly-2015-06-12 build plan ...ProxyConnectException "raw.githubusercontent.com" 443 (Left "StatusHeaders (Status {statusCode = 407, statusMessage = \"Proxy Authentication Required\"}) <...some more headers...>

Here is dump of stack's request:

CONNECT raw.githubusercontent.com:443 HTTP/1.1

Here is dump of request done with curl which works fine:

CONNECT raw.githubusercontent.com:443 HTTP/1.1\r\n
Host: raw.githubusercontent.com:443\r\n
Proxy-Authorization: Basic dXNlcjpwYXNz\r\n
User-Agent: curl/7.42.1\r\n
Proxy-Connection: Keep-Alive\r\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions