Created
January 27, 2013 03:47
-
-
Save markhibberd/4646166 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Network.HTTP.Conduit | |
| import qualified Data.ByteString.Lazy as L | |
| main = simpleHttp "http://www.haskell.org/haskellwiki/Haskell" >>= L.putStr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [vex:tmp] 2043$ runhaskell conduit-fail.hs | |
| conduit-fail.hs: FailedConnectionException "www.haskell.org" 80 | |
| [vex:tmp] 2044$ curl -IL http://www.haskell.org/haskellwiki/Haskell | |
| HTTP/1.1 200 OK | |
| Date: Sun, 27 Jan 2013 03:46:33 GMT | |
| Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny13 with Suhosin-Patch | |
| X-Powered-By: PHP/5.2.6-1+lenny13 | |
| Content-language: en | |
| X-Frame-Options: DENY | |
| Vary: Accept-Encoding,Cookie | |
| X-Vary-Options: Cookie;string-contains=wikidbUserID;string-contains=wikidb_session,Accept-Encoding;list-contains=gzip | |
| Expires: Thu, 01 Jan 1970 00:00:00 GMT | |
| Cache-Control: private, must-revalidate, max-age=0 | |
| Last-modified: Wed, 23 Jan 2013 22:04:31 GMT | |
| Content-Type: text/html; charset=UTF-8 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Network.HTTP appears to work fine.