1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
[ trivial-https is a fork of trivial-http with support for HTTPS. ]
trivial-https is a trivial library for doing HTTP POST and GET over a
socket interface. It establishes a package TRIVIAL-HTTPS, from which the
following functions are exported:
(TRIVIAL-HTTPS:HTTP-GET URL &optional HEADERS) - returns a list of three
elements: a response code as integer, an association list of headers returned
from the server, and a stream from which the request can be read. Optional
argument HEADERS can be supplied as an alist of header name and value pairs
to be sent to the server.
(TRIVIAL-HTTPS:HTTP-POST URL CONTENT-TYPE CONTENT) - given a URL, a MIME
content type, and the content as a character stream, POST to the URL
and return the list of three elements as described for HTTP-GET.
(TRIVIAL-HTTPS:ESCAPE-URL-QUERY QUERY) - escapes a query string in accordance
with the HTTP specification.
|