@hackage HTTP4000.0.8

A library for client-side HTTP

A package for sending and receiving HTTP requests and responses, all implemented in Haskell (assuming you've already got a network stack to spare, via the network package!) The representation of content of in requests and responses is user-controllable, letting you pick a representation that fits your code better (e.g., use ByteStrings rather than the default Haskell Strings.) Example uses:

   do
     rsp <- Network.HTTP.simpleHTTP (getRequest "http://www.haskell.org/")
             -- fetch document and return it (as a 'String'.)
     fmap (take 100) (getResponseBody rsp)

   do
     rsp <- Network.Browser.browse $ do
              setAllowRedirects True -- handle HTTP redirects
              request $ getRequest "http://google.com/"
     fmap (take 100) (getResponseBody rsp)

Git repository available at git://code.galois.com/HTTPbis.git