I'm using the simple example from HTTP.Conduit's documentation found here.
import Network.HTTP.Conduit
import qualified Data.ByteString.Lazy as L
main = simpleHttp "http://www.haskell.org/" >>= L.putStr
My system requires a proxy which is set with the environmental variable http_proxy and has the form http://user:pass@proxy:port/.
Http.Conduit results in an exception with the error:
*** Exception: InvalidProxyEnvironmentVariable "http_proxy" "http://user:pass@proxy:port/"
(I've changed the details for the proxy..)
What is the issue? Does Http.Conduit not support authentication?
Network.Curlwhich given a test I just did seems to work even with proxy settings for the obvious reasons.http-clientdoesn't support proxies with auth (at the moment), see github.com/snoyberg/http-client/issues/129.