The simulated browser cannot obtain the remote webpage content! Solution

Source: Internet
Author: User
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 ');

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.