Unirest::post
Send POST request to a URL
Signature
public function post(string
$url,
[array
$headers = ,
[mixed
$body = NULL,
[string
$username = NULL,
[string
$password = NULL]]]] )
Parameters
$url
— string- URL to send the POST request to
$headers
— array- additional headers to send
$body
— mixed- POST body data
$username
— string- Basic Authentication username
$password
— string- Basic Authentication password
Returns
- string|stdObj
- response string or stdObj if response is json-decodable