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