Curl Info显示成功:
array(37) { ["url"]=> string(50) "http://abcd.bd/abcd.php" ["content_type"]=> string(24) "text/html; charset=UTF-8" ["http_code"]=> int(200) ["header_size"]=> int(318) ["request_size"]=> int(403) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(2.218) ["namelookup_time"]=> float(1.0E-6) ["connect_time"]=> float(0.078) ["pretransfer_time"]=> float(0.078) ["size_upload"]=> float(637) ["size_download"]=> float(5878) ["speed_download"]=> float(2650) ["speed_upload"]=> float(287) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(637) ["starttransfer_time"]=> float(0.078) ["redirect_time"]=> float(0) ["redirect_url"]=> string(0) "" ["certinfo"]=> array(0) { } ["primary_port"]=> int(80) ["local_ip"]=> string(13) "10.102.11.131" ["local_port"]=> int(54537) ["http_version"]=> int(2) ["protocol"]=> int(1) ["ssl_verifyresult"]=> int(0) ["scheme"]=> string(4) "HTTP" ["appconnect_time_us"]=> int(0) ["connect_time_us"]=> int(78000) ["namelookup_time_us"]=> int(1) ["pretransfer_time_us"]=> int(78000) ["redirect_time_us"]=> int(0) ["starttransfer_time_us"]=> int(78000) ["total_time_us"]=> int(2218000) }
但是我的curl_exec($ ch) 仅返回页眉和页脚。 表格数据未显示。
我尝试了所有选项,但还是没有运气。
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_REFERER, $url_register.'a.php');
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_URL, $url_register.'a.php');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: text/html; charset=UTF-8'));
$result = curl_exec($ch);
仅供参考,我要包含的响应页面
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
在顶部。
我不知道怎么了。应该很简单。 我在这里想念的东西吗?