Created
August 29, 2017 09:21
-
-
Save achmadfatoni/8c67cc430f4de18926c42abf24aedbc1 to your computer and use it in GitHub Desktop.
Guzzle Raw POST request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client = new Client(); | |
$array = []; | |
$res = $client->request('POST', $url, [ | |
'body' => json_encode($array), | |
'headers' => [ | |
'Content-Type' => 'application/json', | |
] | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks help alot