InternetLib

htmlFetchF

Fetching documents

Types

htmlFetchF :: F String String

Description

htmlFetchF is a simplifiled version of urlFetchF for fetching HTML documents.

Input

the URL, represented as a string, of a HTML document to fetch.

Output

the fetched document in the form of a string.

Example


The following program displays documents fetched from URLs entered by the user.

import Fudgets
import InternetLib

main = fudlogue (shellF "TestHtmlFetchF" mainF)

mainF = moreF >==< mapF lines >==< htmlFetchF >==< stringInputF

See Also

A more general fudget: urlFetchF.

Parsing HTML: parseHtml


InternetLib