0

问题描述

Fatal error: Uncaught GuzzleHttpExceptionConnectException: cURL error 7: Failed to connect to www.amazon.com port 443: Timed out (see http://curl.haxx.se/libcurl/c... in E:test18tp5php_rurlvendorguzzlehttpguzzlesrcHandlerCurlFactory.php:185 Stack trace: #0 E:test18tp5php_rurlvendorguzzlehttpguzzlesrcHandlerCurlFactory.php(149): GuzzleHttpHandlerCurlFactory::createRejection(Object(GuzzleHttpHandlerEasyHandle), Array) #1 E:test18tp5php_rurlvendorguzzlehttpguzzlesrcHandlerCurlFactory.php(102): GuzzleHttpHandlerCurlFactory::finishError(Object(GuzzleHttpHandlerCurlHandler), Object(GuzzleHttpHandlerEasyHandle), Object(GuzzleHttpHandlerCurlFactory)) #2 E:test18tp5php_rurlvendorguzzlehttpguzzlesrcHandlerCurlHandler.php(43): GuzzleHttpHandlerCurlFactory::finish(Object(GuzzleHttpHandlerCurlHandler), Object(GuzzleHttpHandlerEasyHandle), Object(GuzzleHttpHandlerCurlFactory)) #3 E:test18tp5php_rurlvendorguzzlehttpguzzlesrcHandlerProxy.php(28): GuzzleH in E:test18tp5php_rurlvendorguzzlehttpguzzlesrcHandlerCurlFactory.php on line 185

问题出现的环境背景及自己尝试过哪些方法

使用PHP原生开发,

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)
<?php
require 'vendor/autoload.php';
use QLQueryList;

$data = QueryList::get('https://www.amazon.com/s?k=yo...')->find('h1>div>div>div>div>span')->texts();
print_r($data->all());

你期待的结果是什么?实际看到的错误信息又是什么?

找出原因解决它

2019-05-09 提问
0 个回答

撰写答案

推广链接