on-internet
← Community

PHP GuzzleHttp. How to make a post request with params?

Stack Overflow ·

How to make a post request with GuzzleHttp( version 5.0 ). I am trying to do the following: $client = new \GuzzleHttp\Client(); $client->post( 'http://www.example.com/user/create', array( 'email' => '[email protected]', 'name' => 'Test user', 'password' => 'testpassword' ) ); But I am getting the error: PHP Fatal error: Uncaught exception 'InvalidArgumentException' with the message 'No method can handle the email config key'

Comments

Sign in or sign up to comment and upvote.

No comments yet.