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.
分享到:
相关推荐
│ └─ietester.ie11.exe.local │ dxtmsft.dll │ dxtrans.dll │ html.iec │ IEAdvpack.dll │ ieapfltr.dll │ iedkcs32.dll │ ieframe.dll │ iertutil.dll │ iesetup.dll │ IEShims.dll │ ...
这些 dll 文件包括 MFC42.DLL、advpack.dll、browselc.dll、WSOCK32.DLL、jscript.dll、rpcrt4.dll、MSHTMLED.DLL、oleaut32.dll、MSRATING.DLL、comctl32.dll、msratelc.dll、URL.DLL、URLMON.DLL、WININET.DLL、...
IE浏览器 修复 rundll32.exe /s advpack.dll /DelNodeRunDLL32 C:WINNTSystem32dacui.dll rundll32.exe /s advpack.dll /DelNodeRunDLL32 C:WINNTCatrooticatalog.mdb regsvr32 /s setupwbv.dll regsvr32 /s wininet...
regsvr32 /i /s WININET.DLL regsvr32 /i /s SHDOCVW.DLL regsvr32 /i /s OLE32.DLL regsvr32 /i /s mydocs.dll regsvr32 /i /s ACTXPRXY.DLL regsvr32 /i /s RPCRT4.dll regsvr32 /i /s mshtml.dll regsvr32...
- Urlmon.dll - Wininet.dll - Setupapi.dll 3. **临时解决方案**: 当你无法立即执行上述修复步骤时,可以暂时通过以下方式恢复桌面图标:按下`Ctrl+Alt+Del`组合键,选择"应用程序"标签,点击"新任务",在弹...
C:\WINDOWS\system32\CRYPTUI.dll|C:\WINDOWS\system32\USERENV.dll|C:\WINDOWS\system32\jscript.dll|C:\WINDOWS\system32\urlmon.dll|C:\WINDOWS\system32\SXS.DLL|C:\WINDOWS\system32\browseui.dll|C:\WINDOWS\...
comctl32.dll, 6.10.16299.125, C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.16299.125_none_5d79065fa7de350f\ comdlg32.dll, 10.0.16299.125, C:\WINDOWS\System32\ ...
这个函数属于Windows操作系统内置的`Wininet.dll`库,它提供了网络访问的功能,包括HTTP、HTTPS和FTP等协议。在本实例中,我们将会探讨如何使用`URLDownloadToFile`以及它与回调函数的结合。 `URLDownloadToFile`的...
- **HTTP请求**:使用`Urlmon`和`WinINet`单元中的函数发起HTTP请求,获取服务器上的版本信息。 - **文件操作**:通过`MoveFileEx`函数或INI文件操作来安全地替换程序文件,确保更新过程不会中断程序运行。 - **多...
The mechanism provided by the CLR that enables managed code to call static DLL exports. Access PInvoke.net directly from VS: Terms of Use Edit This Page Find References Show Printable Version ...
易语言是一种专为中国人设计的编程语言,它以简体中文作为编程语句,降低了编程的入门门槛。本文将详细探讨在易语言中实现打开指定网址的八种方法,这适用于初学者和有一定经验的开发者,希望提升在易语言环境下进行...