Original source: http://www.cnblogs.com/Charltsing/p/winhttpasyn.html
Recently, I was asked if I can bypass the century good-luck member verification to collect pictures, I tested it, found that it is possible.
The efficiency of WinHTTP asynchronous acquisition is also tested. (Use WinHTTP in VBA to develop fast)
After testing, it takes about three minutes or less to retrieve 10,000 members in the event that the site is not busy.
Here's a brief look at how to do concurrent acquisition using WinHTTP:
1, in the class module to establish WinHTTP of various events, for processing error and response data. Establish a bool variable to indicate whether the instance is idle.
2. In the standard module, the URL is automatically generated according to the UID, and an index variable is established to indicate the ordinal number of the site URL that has been sent.
3. Create an array of WinHTTP instances in the standard module for concurrency. The number of recommendations should not exceed 1000, specifically related to network and Computer configuration.
4. Monitor the array of WinHTTP instances in the Do While loop, if there is a free set URL to start the request.
Specific WinHTTP class module in the event of the wording, please own Baidu.
Technical Exchange Please contact qq:564955427
**
Batch acquisition of the century Jia Yuan member picture and WinHTTP asynchronous acquisition efficiency