next up previous contents index
Next: Request Parameters Up: Accessing Internet with Libwww Previous: Accessing Internet with Libwww   Contents   Index

Syntax

The general form of a Web call is as follows:

    :- libwww_request([request1, request2, ..., request_n]).
Each request has the following syntax:
    request_type(+URL, +RequestParams, -ResponseParams, -Result, -Status)
The request type functor must be either htmlparse, xmlparse, rdfparse, fetch, or header. The first two are requests to parse HTML/XML pages, respectively. Fetch is a request to bring in a page without parsing, nd header is a request to retrieve only the header information (which is returned in the ResponseParams argument--see below). The URL must be an atom or a string (list of characters).9.1



Luis Fernando P. de Castro 2003-06-27