Simple Http Proxy tools-improved support for QQ proxy

Source: Internet
Author: User

Yesterday, I used the proxy in the previous article to test the proxy's access to Web.QQ.com. I found that the access failed and always returned the 400 error.

So we started the test:

1. Detection request header-> remove proxy header-> invalid

2. Access web.qq.com through CCProxy->

3. Use CCProxy for second-level code: http request-> CCProxy-> TCPProxy (Your Own Program)

The request header is forwarded again-> invalid

4. Remove proxy> Direct Request> GET request header> record first

TCPProxy-comparison, modify the header information-> send-> invalid

TCPProxy-the recorded request header is directly sent-> invalid

5. Refresh the request multiple times-> dozens of times-> occasionally access the request normally

 

So N hours have passed. No effect.

 

Evening:

Finally, I found the following descriptions:

Replace the request header Get http://xxx.com/http/1.1 and Host: xxx.com with the following:

Get/http/1.1 Host: IP Address

Therefore, web.QQ.com can be accessed normally at last. [The request time delay must be adjusted accordingly]

However, a 163 error occurs when you access the 403 website.

Note that websites such as 163 do not allow direct IP requests. Change the request header:

Get/http/1.1 Host: xxx.com address

As a result, all of them can be accessed normally. After the Get [http: // host header] is removed, the web request passes the test.

-------------------------------------------------------------------------------

Next, test logon to QQ.

Login timeout is found to fail.

After searching, a C # source code was downloaded from CSDN with 10 resources, and QQ/MSN proxy login was supported.

Tested and compared: It is found that QQ needs to repeatedly receive/send data back and forth. And the latency must be well handled, otherwise it will also time out.

At half past one, the test passed. Now, the test is complete.

Today I went to the company to test it. It is currently in normal use...

So far, a complete proxy for the normal functions of http web page + QQ has come out. (MSN hasn't been tested yet, but the test is now available)

Note: When acting as a proxy for LAN and internet, you must adjust the delay time normally.

Click here to download the source code

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.