Ⅰ 一個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.