Haskell Network.HTTP.Conduit Exception: InvalidProxyEnvironmentVariable "http_proxy"

I am using a simple example from the HTTP.Conduit 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 server that installs with an environment variable http_proxyand takes the form http://user:pass@proxy:port/.

Http.Conduit throws an exception with an error:

  *** Exception: InvalidProxyEnvironmentVariable "http_proxy" "http://user:pass@proxy:port/"

(I changed the proxy details ..)

What is the problem? Http.Conduit does not support authentication?

+4
source share
1 answer

This is the http-client restriction that has now been reported and resolved . This change will be released in Hackage in the next few days, test reports and successes are welcome!

+5
source

All Articles