Snoopy disguise proxy solution

Source: Internet
Author: User
Snoopy disguise proxy when I use the Snoopy class, the disguise proxy is as follows: $ snoopy-& gt; agent & quot; (compatible; MSIE4.01; MSN2.5; AOL4.0; Windows98) & quot; however, I output $ _ SERVER [& quot; HTTP_USER_AGENT & quot;] Proxy or my browser proxy, which is not changed at all? Snoopy disguise agents
When I use the Snoopy class, the disguised proxy is as follows:

$ Snoopy-> agent = "(compatible; MSIE 4.01; MSN 2.5; AOL 4.0; Windows 98 )"

However, I output $ _ SERVER ["HTTP_USER_AGENT"]
The proxy or my browser proxy is not changed at all? Please give me some comments

------ Solution --------------------
$ Snoopy-> agent = "(compatible; MSIE 4.01; MSN 2.5; AOL 4.0; Windows 98 )";
$ Snoopy-> fetch ('XXX. php ');
Echo $ snoopy-> results;

Write in xxx. php
Echo $ _ SERVER ["HTTP_USER_AGENT"];

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.