Ⅰ 一个URL,用浏览器打开和用curl打开,返回的结果不一样,怎么回事
我的curl里用
curl_setopt($this->_ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt($this->_ch, CURLOPT_SSL_VERIFYHOST, false );
这网站伺服器回你 http_code=521。
Array ( [content_type] => text/html [http_code] => 521 [header_size] => 147 [request_size] => 218 [filetime] => -1 [ssl_verify_result] => 20 [redirect_count] => 0 [total_time] => 1 [namelookup_time] => 0 [connect_time] => 0.234 [pretransfer_time] => 0.75 [size_upload] => 0 [size_download] => 1067 [speed_download] => 1067 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => 0 [starttransfer_time] => 1 [redirect_time] => 0 [certinfo] => Array ( ) [primary_ip] => 113.207.76.99 [primary_port] => 443 [local_ip] => 192.168.1.101 [local_port] => 61288 [redirect_url] => )
你可能要查SSL的certificate.