开发者社区> 技术小胖子> 正文

[IE编程] 了解Urlmon.dll和Wininet.dll

简介:
+关注继续查看
Windows 网络编程常用的API库有Winsock,Wininet 和 Urlmon。Winsock 实现了基本的套接字(socket)功能, 而 wininet 和 urlmon在winsock 的基础上封装了HTTP, FTP, WWW 的协议。 这篇文章 《Under the Hood: WinINet》(http://blogs.technet.com/askperf/archive/2007/08/21/under-the-hood-wininet.aspx) 可以很好帮助了解wininet 和 urlmon 的功能和区别。
wininet.dll
Caching, History, Cookie Management 
Authentication - Basic, NTLM, Kerberos 
Connections - Both secure (schannel) and non-secure 
Dial-up, Direct, Proxy 
Protocol and HTTP header management 
urlmon.dll
URL Parsing – breaking down URLs into the protocol used (HTTP, HTTPS, FTP, File, Gopher), address, and target. 
GZIP compression/decompression – provides support for GZIP HTTP compression to deflate and inflate data.  IE6 and IE7 handle this slightly differently.  In IE7 this functionality is handled by WinINet. 
Security and Zone Management – Identifies security zones, zone crossings, permissions, etc. 
Asynchronous Pluggable Protocol Filter/Handler – correlates appropriate the protocol to the registered handler (HTTP, HTTPS, MAILTO, FILE, etc.). 
Code Download Management, Install On Demand, and Just-In-Time. 
Forms requests from the URL – creates the outbound data package and hands it off to WININET for transfer. 
MIME (Multipurpose Internet Mail Extension) type management – examines the MIME type for data returned in an HTTP response and correlates that type with a specific handler. For example, URLMON would open a Microsoft Word document (MIME type .doc) with Microsoft Word. If the MIME type is not clear from the response, URLMON is capable of examining the binary data to determine the appropriate MIME type. MIME is described more thoroughly in RFC1521.
 


 本文转自 陈本峰 51CTO博客,原文链接:http://blog.51cto.com/wingeek/273684,如需转载请自行联系原作者

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
DLL 编写与使用
DLL 编写与使用 DLL,Dynamic Link Library,动态链接库。这是微软的一项技术,必须包含<windows.h>。 vs2010创建dll项目 流程: File|New|Project|Visual C++|Win32 | Win32 Console Application|DLL(Additional options|Export symbol
937 0
动态链接库(DLL)的开发和使用 .
一、DLL简介 它是Dynamic Link Library 的缩写形式,DLL 是一个包含可由多个程序同时使用的代码和数据的库,DLL不是可执行文件。动态链接提供了一种方法,使进程可以调用不属于其可执行代码的函数。
1101 0
BASP21 DLL
This is a comprehensive component, packed with 66 of useful methods, that is able to operated from ASP, Visual Basic, VBA, WSH(Windows Scripting Host).
1724 0
VS2008查看dll导出函数
打开Visual Studio 2008 命令提示,使用命令 [plain] view plaincopyprint? dumpbin /exports simple.dll   即可查看
805 0
文章
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载