【发布时间】:2014-09-22 07:23:51
【问题描述】:
我在 Laravel 4 中使用 Guzzle 从另一台服务器返回一些数据,但我无法处理错误 400 错误请求
[status code] 400 [reason phrase] Bad Request
使用:
$client->get('http://www.example.com/path/'.$path,
[
'allow_redirects' => true,
'timeout' => 2000
]);
如何解决? 谢谢,
【问题讨论】:
-
“无法处理错误 400”是什么意思?
-
收到此错误时,页面停止并显示此错误消息(我要处理此异常)
标签: php laravel bad-request guzzle