How to make a post request with GuzzleHttp( version 5.0 ).
I am trying to do the following:
$client = new \\GuzzleHttp\\Client(); $client->post( \
Try this
$client = new \GuzzleHttp\Client(); $client->post( 'http://www.example.com/user/create', array( 'form_params' => array( 'email' => 'test@gmail.com', 'name' => 'Test user', 'password' => 'testpassword' ) ) );