Skip to content

Instantly share code, notes, and snippets.

View panchocasanova's full-sized avatar

Francisco Javier Casanova panchocasanova

View GitHub Profile
@achmadfatoni
achmadfatoni / guzzle_raw_post_request.php
Created August 29, 2017 09:21
Guzzle Raw POST request
$client = new Client();
$array = [];
$res = $client->request('POST', $url, [
'body' => json_encode($array),
'headers' => [
'Content-Type' => 'application/json',
]
]);