The PiLLoW Web Programming Library - HTTP conectivity

Go to the first, previous, next, last section, table of contents.

# HTTP conectivity

Author(s): Daniel Cabeza.

Version: 1.7 (2000/7/12, 19:1:20 CEST)

Version of last change: 1.3#114 (1999/11/24, 0:57:16 MET)

This module implements the HTTP protocol, which allows retrieving data from HTTP servers.

- Usage and interface (http)
- Documentation on exports (http)

## Usage and interface (`http`)

- Library usage: `:- use_module(library(http)).`
- Exports:
  - Predicates: `fetch_url/3`.

## Documentation on exports (`http`)

PREDICATE: fetch_url/3:

  `fetch_url(URL,Request,Response)`

  Fetches the document pointed to by `URL` from Internet, using request parameters `Request`, and unifies `Response` with the parameters of the response. Fails on timeout. Note that redirections are not handled automatically, that is, if `Response` contains terms of the form `status(redirection,301,_)` and `location(NewURL)`, the program should in most cases access location `NewURL`.

  Usage: `fetch_url(URL,Request,Response)`

  - The following properties should hold at call time: `URL` specifies a URL. (`url_term/1`) `Request` is a list of `http_request_param`s. (`list/2`)
  - The following properties hold upon exit: `Response` is a list of `http_response_param`s. (`list/2`)

Go to the first, previous, next, last section, table of contents.