File: README

package info (click to toggle)
trivial-https 20051125-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 52 kB
  • ctags: 11
  • sloc: lisp: 86; makefile: 29
file content (18 lines) | stat: -rw-r--r-- 892 bytes parent folder | download
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.