Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

guzzlehttp post json example

use GuzzleHttpClient;

$client = new Client();

$response = $client->post('url', [
    GuzzleHttpRequestOptions::JSON => ['foo' => 'bar'] // or 'json' => [...]
]);
 
PREVIOUS NEXT
Tagged: #guzzlehttp #post #json
ADD COMMENT
Topic
Name
4+5 =