keep connection should link to here: https://www.swi-prolog.org/pldoc/doc_for?object=http_open%3Akeep_connection/1
|Did you know ...||Search Documentation:|
true), do not try to automatically authenticate the client if a 401 (Unauthorized) status code is received.
library(http/http_digest)is also loaded.
Connectionheader. Default is
close. The alternative is
Keep-alive. This maintains a pool of available connections as determined by keep_connection/1. The
Keep-alive, Upgrade. Keep-alive connections can be closed explicitly using http_close_keep_alive/1. Keep-alive connections may significantly improve repetitive requests on the same server, especially if the IP route is long, HTTPS is used or the connection uses a proxy.
header(Name,Value)option. See also
raw_headers(-List)which provides the entire HTTP reply header in unparsed representation.
headmessage can be used in combination with the
header(Name, Value)option to access information on the resource without actually fetching the resource itself. The returned stream must be closed immediately.
post(Data) is provided, the default is
Content-Lengthin the reply header.
Major-Minor, where Major and Minor are integers representing the HTTP version in the reply header.
end. HTTP 1.1 only supports Unit =
bytes. E.g., to ask for bytes 1000-1999, use the option
raw_encoding('applocation/gzip')the system will not decompress the stream if it is compressed using
Two examples in which the URI is specified as a list of components, both denoting the URI `https://www.example.com/?animal=monkey`:
?- http_open([host('example.com'),scheme(https),search([animal=monkey])], Stream, ). ?- http_open([host('example.com'),query_string('animal=monkey'),scheme(https)], Stream, ).