Why can't I get the actual link address when a curl carries a cookie to the server ??

Source: Internet
Author: User
1. First, the browser requests weixin.sougou.com to get 3 + 3 + 1 cookie2. When I search by keyword, an SNUID cookie3 will be added. When I click the link, the above cookies will be carried to websearch. .... I will make a decision based on the cookie...

1. First, the browser requests weixin.sougou.com to get 3 + 3 + 1 cookie

2. When I search by keyword, an SNUID cookie will be added.

3. When I click the link, bring the above cookies to/websearch ....
The client will determine whether to return the actual link address to you based on the cookie.

Use curl
The cookie can be obtained even if there is no problem in step 1 and step 2.

However, when you splice a URL for access, 403 will appear.

Reply content:

1. First, the browser requests weixin.sougou.com to get 3 + 3 + 1 cookie

2. When I search by keyword, an SNUID cookie will be added.

3. When I click the link, bring the above cookies to/websearch ....
The client will determine whether to return the actual link address to you based on the cookie.

Use curl
The cookie can be obtained even if there is no problem in step 1 and step 2.

However, when you splice a URL for access, 403 will appear.

Related Article

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.