我在 Laravel 4 中使用 Guzzle 从另一台服务器返回一些数据,但我无法处理错误400 Bad Request。
[status code] 400 [reason phrase] Bad Request
使用:
$client->get('http://www.example.com/path/'.$path,
[
'allow_redirects' => true,
'timeout' => 2000
]);
如何解决这个问题? 谢谢。