gpt4 book ai didi

PHP CURL - 没有错误的空输出

转载 作者:可可西里 更新时间:2023-11-01 13:28:30 25 4
gpt4 key购买 nike

<分区>

我没有得到有效 url 的 curl 输出,示例 $url= http://linkedin.com/pub/4/b29/8a0

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "$url");
curl_setopt($ch, CURLOPT_TIMEOUT, 60);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

$referer = WebCrawl::getRandomURL();
curl_setopt($ch, CURLOPT_REFERER, $referer);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");

curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");

$body = curl_exec($ch);
$error_no = curl_errno($ch);

25 4 0
文章推荐: windows - 如何让 iCacls 在文件夹级别授予访问权限以便它可以被继承?
文章推荐: html - 为什么按 TAB 键(:focus effect) causes positioned off-the-screen
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com