HTTP API Select WinInet or WinHttp?

Source: Internet
Author: User

Microsoft provides two interface APIs for HTTP, and many times we don't know which one is better. (Of course, both sets are not used, their own use Winsock2api to write also can)

Take a look at Microsoft's official recommendations and choose the one that suits you:

Microsoft MSDN Instructions Https://msdn.microsoft.com/en-us/library/aa384068.aspx

Microsoft recommends WinInet https://msdn.microsoft.com/en-us/library/windows/desktop/hh227298 (v=vs.85). aspx here

Two sets of APIs I have used, as if WinInet to IE have patience, ie this slag has been abandoned by Microsoft (short-term will not be completely removed from windows). So, I recommend using WinHTTP.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

HTTP API Select WinInet or WinHttp?

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.