The simulated browser cannot obtain the remote webpage content! I have recently discovered a foreign website. I don't know what technology I have done, so I am exhausted. I have used various methods, that is, I cannot obtain remote content. Could you please help me break it down? The following is an example of PHPcode & lt ;? Php?urlwww.hahasport.comv-4620.v-471310.html; $ chcurl_init ($ u cannot obtain the remote webpage content in a simulated browser! Solution
Recently, I found that a website outside China has no idea what technology it has done, and I am exhausted by using various methods, that is, I cannot obtain remote content. Could you please help me break it down? The following is an example
PHP code
The above simulation browser, error is unable to find the page, but the http://www.hahasport.com/v-4/6/112/v-471310.html is actually can be opened in the browser
It's hard to understand. it's reasonable to say that the web page can be accessed by using a browser, or simulating a browser with a program. Why can't I find the web page?
Please help me break it down
------ Solution --------------------
Add an option.
Curl_setopt ($ ch, CURLOPT_ENCODING, 'gzip, deflate, sdch ');