Categorized | 网络技术

Tags | , ,

winhttp api和com对象版区别

发布于 2017年05月10日 更新于 2017年05月10日 

到底该用哪个接口,微软这么说,api方式:功能齐全,不过调用复杂些;com接口,调用简单,属于一个封装,有部分功能缺失。https://msdn.microsoft.com/zh-cn/library/aa383158(v=vs.85).aspx

C/C++ API COM interface
Advantages
  • Responses can be processed in chunks, which is more efficient.
  • POST operations can also be processed in chunks, speeding processing time.
  • AutoProxy support.
  • Access to the full feature set of WinHTTP.
  • Binary data can easily be handled.
  • Creating an application is easy and requires fewer lines of code than the C/C++ API.
  • The interface can be used by scripting languages.
Disadvantages
  • Processing is more complex.
  • The C/C++ API requires more steps than the COM interface to perform the same actions.
  • Setting up a request takes more code.
  • The COM interface does not provide access to the full feature set of WinHTTP.
  • It is difficult to handle binary data types in some scripting languages, such as VBScript and JScript.
  • The COM interface does not support AutoProxy.
  • Applications must use the COM APARTMENT_THREADED model.
  • Before a response can begin being processed, the entire response must first be received and buffered.

看了此文的人貌似还看了这些:

  • NLPIR/ICTCLAS2014中科院分词系统Api接口 For 易语言 2014-04-09
  • RESTful API 最佳实践(转) 2018-10-10
  • Centos安装Cisco IPSec V-P-N方式 2015-02-25
  • dedecms三级栏目SEO标题设置问题 2012-06-29
  • 自动检测memcached进程,不存在则自动重启(脚本) 2014-11-09
  • 2025.1.6更新:领势MX4200路由器优化、避坑及mesh组网简易教程 2025-01-06
  • 使用JavaScript控制HTML元素的显示和隐藏 2023-02-10
  • 密码保护:Mindjet MindManager2016 可用版 2017-03-06
  • 3proxy 使用教程(转) 2018-11-06
  • wordpress换空间实录,让windows的iis也支持去固定链接index.php化! 2011-02-21
  • 发表评论

    Time limit is exhausted. Please reload CAPTCHA.

       我相信你,不会发广告!

    斗牛SEO工具