Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
<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-data
an
object
url
a
url
or
string
request
a
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
;