Use curl to capture a webpage with a bottleneck

Source: Internet
Author: User
Why does www.sgs.gov. cnlzetpsInfo. do? After inputting methodindex to the website and querying it, you can click here to view details. Then he sent a post to www.sgs.gov. cnlzetpsInfo. do? MethodviewDetail $ etpsId & nbsp; 2 A bottleneck occurs when a web page is crawled using curl
Http://www.sgs.gov.cn/lz/etpsInfo.do? Method = index
This website
You can obtain the query result after entering the information in hookhoor.
After clicking to view details, he sent a post to the http://www.sgs.gov.cn/lz/etpsInfo.do? Method = viewDetail
$ EtpsId = 290000032004051700672
The curl always returns an invalid access method,
I have set refer, but I still cannot set setcookie. Can anyone solve this problem?

------ Solution --------------------
Jump to open
Add simulated browser parameters

All parameters must be submitted clearly.

If the target page has a judgment on the submitted IP address, it will be left empty.
------ Solution --------------------

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.