http-wget-0.6.0: Provide a simple HTTP client interface by wrapping the wget command line tool.

Portabilityportable
StabilityStable
MaintainerMichael Snoyman <michael@snoyman.com>

Network.HTTP.Wget

Description

Provide a simple HTTP client interface by wrapping the wget command line tool.

Synopsis

Documentation

wgetSource

Arguments

:: (MonadIO m, MonadFailure WgetException m) 
=> String

The URL.

-> [(String, String)]

Get parameters.

-> [(String, String)]

Post parameters. If empty, this will be a get request.

-> m String

The response body.

Get a response from the given URL with the given parameters.

wget'Source

Arguments

:: (MonadIO m, MonadFailure WgetException m) 
=> String

The URL.

-> [(String, String)]

Get parameters.

-> [(String, String)]

Post parameters. If empty, this will be a get request.

-> m ([(String, String)], String)

The headers and response body.

Get a response from the given URL with the given parameters, including headers.