I would like to know whether WinInet or WinHttp will get webpage contents quickly or is there any other quicker method for getting webpage content (less than 1 sec).
我想知道WinInet或WinHttp是否会快速获取网页内容,或者是否有其他更快的方法来获取网页内容(少于1秒)。
The programming environment which I am using is VC++
我使用的编程环境是VC ++
1 个解决方案
#1
As said by the commenters, Internet doesn't guarantee load times.
正如评论者所说,互联网不保证加载时间。
As for the specific API, I'd use XMLHTTPRequest COM object instead of WinInet or WinHttp.
至于具体的API,我使用XMLHTTPRequest COM对象而不是WinInet或WinHttp。
P.S. Don't forget to call CoInitialize.
附:别忘了打电话给CoInitialize。
#1
As said by the commenters, Internet doesn't guarantee load times.
正如评论者所说,互联网不保证加载时间。
As for the specific API, I'd use XMLHTTPRequest COM object instead of WinInet or WinHttp.
至于具体的API,我使用XMLHTTPRequest COM对象而不是WinInet或WinHttp。
P.S. Don't forget to call CoInitialize.
附:别忘了打电话给CoInitialize。