相关疑难解决方法(0)

Guzzle:处理400个不良请求

我在Laravel 4中使用Guzzle从另一台服务器返回一些数据,但我无法处理Error 400错误请求

 [status code] 400 [reason phrase] Bad Request
Run Code Online (Sandbox Code Playgroud)

使用:

$client->get('http://www.example.com/path/'.$path,
            [
                'allow_redirects' => true,
                'timeout' => 2000
            ]);
Run Code Online (Sandbox Code Playgroud)

怎么解决?谢谢,

php bad-request laravel guzzle

19
推荐指数
2
解决办法
3万
查看次数

标签 统计

bad-request ×1

guzzle ×1

laravel ×1

php ×1