Subject: | How to POST data |
Not sure if this is a bug or a question (which I suppose makes it a
documentation bug), but I was unable to figure out how to make POST
requests.
I can do
$self->_make_restricted_request($url, 'POST');
but that has no request body.
$self->_make_restricted_request($url, 'POST', foo => 'bar');
sets a header, not a form parameter in the body.
How does one specify the request body (for arbitrary data and for
form-encoded parameters)?