我正在使用 facebook/php-webdriver,如果想要通过代理连接到任何网站,可以使用以下代码:
$driver = RemoteWebDriver::create($host, $capabilities);
try{
$driver->navigate()->to("http://www.example.com/");
} catch (Exception $e) {
echo $e->getMessage();
}
因为代理有时很慢,所以这需要时间,然后返回以下错误:
对于向/session/c189e325-9057-489c-b2de-93c95cdb1cc4/url 发送的http POST请求,出现了 Curl 错误,参数如下:{"url":"http://www.live.com/"}
操作超时,30001 毫秒内未接收到 -1 字节
问题:是否可以增加 curl 超时延迟的 30001 毫秒?