<post-request> ( post-data url -- request )
HTTP client > POST requests with the HTTP client
Prev:http-post ( post-data url -- response data )


Vocabulary
http.client

Inputs and outputs
post-dataan object
urla url or string
requesta request


Word description
Constructs an HTTP POST request for submitting post data to the URL.

Notes
The request can be passed on to http-request, possibly after cookies and headers are set.

Definition
USING: accessors http.client.private kernel ;

IN: http.client

: <post-request> ( post-data url -- request )
"POST" <client-request> swap >>post-data ;