Cabal fails with proxy with authentication

前端 未结 1 1252
抹茶落季
抹茶落季 2021-01-26 15:56

This is a well-known bug that cabal can not handle proxies in format http://user:password@host:port format. On Haskell mailing list, someone suggested

1条回答
  •  清酒与你
    2021-01-26 16:06

    I have got it working with polipo. My university uses http-proxy with authentication. In /etc/polipo/config you need to add these lines

    parentProxy = "proxy.server.com:80"
    parentAuthCredentials = "myusername:mypassword"
    

    And export http_proxy=http://localhost:8123". And it worked like a charm.

    0 讨论(0)
提交回复
热议问题