public function ClientInterface::post

Create a POST request for the client

Parameters

string|array $uri Resource URI:

array|Collection $headers HTTP headers:

array|Collection|string|EntityBodyInterface $postBody POST body. Can be a string, EntityBody, or: associative array of POST fields to send in the body of the request. Prefix a value in the array with the @ symbol to reference a file.

Return value

EntityEnclosingRequestInterface

See also

Guzzle\Http\ClientInterface::createRequest()

1 method overrides ClientInterface::post()
Client::post in drupal/core/vendor/guzzle/http/Guzzle/Http/Client.php
Create a POST request for the client

File

drupal/core/vendor/guzzle/http/Guzzle/Http/ClientInterface.php, line 223

Class

ClientInterface
Client interface for send HTTP requests

Namespace

Guzzle\Http

Code

public function post($uri = null, $headers = null, $postBody = null);