tagsoup-0.7: Parsing and extracting information from (possibly malformed) HTML documentsContentsIndex
Text.HTML.Download
Portabilityportable
Stabilityunstable
Maintainerhttp://www.cs.york.ac.uk/~ndm/
Description

This module simply downloads a page off the internet. It is very restricted, and it not intended for proper use. The primary purpose is to allow more interesting examples for the Data.Html.TagSoup module.

The original version was by Alistair Bayley, with additional help from Daniel McAllansmith. It is taken from the Haskell-Cafe mailing list "Simple HTTP lib for Windows?", 18 Jan 2007. http://thread.gmane.org/gmane.comp.lang.haskell.cafe/18443/

Synopsis
openURL :: String -> IO String
openItem :: String -> IO String
Documentation
openURL :: String -> IO String

This function opens a URL on the internet. Any http:// prefix is ignored.

 openURL "www.haskell.org/haskellwiki/Haskell"

Known Limitations:

  • Only HTTP on port 80
  • Outputs the HTTP Headers as well
  • Does not work with all servers

It is hoped that a more reliable version of this function will be placed in a new HTTP library at some point!

openItem :: String -> IO String
Open a URL (if it starts with http://) or a file otherwise
Produced by Haddock version 0.8