How to make a post request with GuzzleHttp( version 5.0 ).
I am trying to do the following:
$client = new \\GuzzleHttp\\Client(); $client->post( \
$client = new \GuzzleHttp\Client(); $request = $client->post('http://demo.website.com/api', [ 'body' => json_encode($dataArray) ]); $response = $request->getBody();
Add
openssl.cafile in php.ini file
openssl.cafile
php.ini