I am trying to figure out how to make a basic GET request using Network.HTTP.simpleHTTP, which will use a proxy.
I tried to set the http_proxy environment variable, and I think I understand how to make a proxy server using Network.HTTP.Proxy. But there is nothing in the Hackage API on how to set up a simple HTTTP call or request type to use a proxy server.
The current code I have is:
import Network.HTTP import Network.HTTP.Proxy import Data.Maybe main = do let proxy = fromJust $ parseProxy "proxyserver.foo.com:80" x <- simpleHTTP (getRequest "http://www.google.com") >>= getResponseBody print x
proxy haskell networking
devrand
source share