我正在使用这种请求结构
$client = new Client(['base_uri' => 'http://api.brain.com.ua/']);
$request = new Request('POST', 'auth', [
'headers' => [
'Accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding' => 'gzip, deflate, br',
'Accept-Language' => 'ru,en-US;q=0.7,en;q=0.3',
'Upgrade-Insecure-Requests' => '1',
],
'form_params' => ['login' => $this->login, 'password' =>md5($this->password)]]);
$response = $client->send($request, ['timeout' => 2]);
服务器返回200
但是方法$ response-> getBody()返回一个空结果 而cURL返回正常答案{“status”:1,“result”:“gpkavk4s0aciujg6m698gev040”}
如何使用GuzzleHttp获得相同的结果?