Bart\Curl::post PHP Method

post() public method

HTTP Post Request
public post ( string $path, array $getParams, string | array $postData, array $headers = null, string $cookies = null ) : array
$path string relative path from base hostUri
$getParams array An associative array of get parameters
$postData string | array The data to send in your post
$headers array associative array of headers to include
$cookies string Cookies to include
return array Remote response body
    public function post($path, array $getParams, $postData, array $headers = null, $cookies = null)
    {
        return $this->request(CURLOPT_POST, $path, $getParams, $postData, $headers, $cookies);
    }