I am new to Guzzle and tried to read documentation, but still can't find the answer for it.
For example - I get this code from here
$request = $client->post('http://httpbin.org/post', array(), array(
'custom_field' => 'my custom value',
'file_field' => '@/path/to/file.xml'
));
$response = $request->send();
I tried to do the same thing, but when $client->post() is executed, it returns a response object, instead of request. What can be wrong?
I am using the version 6.