Author(s): Daniel Cabeza.
Version: 1.11#222 (2004/5/24, 13:8:7 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.
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.
(pillow_types:url_term/1
)
Request
is a list of http_request_param
s.
(basic_props:list/2
)
Response
is a list of http_response_param
s.
(basic_props:list/2
)
Go to the first, previous, next, last section, table of contents.