You are here

public function CurlRequest::post in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php \MaxMind\WebService\Http\CurlRequest::post()

Parameters

$body:

Return value

array

Overrides Request::post

File

includes/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php, line 31

Class

CurlRequest
This class is for internal use only. Semantic versioning does not not apply. @package MaxMind\WebService\Http @internal

Namespace

MaxMind\WebService\Http

Code

public function post($body) {
  $curl = $this
    ->createCurl();
  curl_setopt($curl, CURLOPT_POST, true);
  curl_setopt($curl, CURLOPT_POSTFIELDS, $body);
  return $this
    ->execute($curl);
}