Author(s): Daniel Cabeza.
Version: 1.7#40 (2001/1/5, 19:7:40 CET)
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.
http
)http
)
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)
URL
specifies a URL.
(url_term/1
)
Request
is a list of http_request_param
s.
(list/2
)
Response
is a list of http_response_param
s.
(list/2
)
Go to the first, previous, next, last section, table of contents.