POST requests with the HTTP client (original) (raw)

POST requests with the HTTP client
HTTP client

Prev: GET requests with the HTTP client
Next: PUT requests with the HTTP client

Basic usage involves passing post data and a url, and getting a response and data back:
http-post ( data url -- response content )
http-post* ( data url -- response content )

Advanced usage involves constructing a request, which allows HTTP cookies and HTTP headers to be set:

( data url -- request )

Both words take a post data parameter; see HTTP client post data.