Creates 'POST' request.
public post ( string $url, array | string $data = null, array $headers = [], array $options = [] ) : |
||
$url | string | target URL. |
$data | array | string | if array - request data, otherwise - request content. |
$headers | array | request headers. |
$options | array | request options. |
return | request instance. |