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