Essential WinInet
暫譯: Essential WinInet 基礎知識

Aaron Skonnard

  • 出版商: Addison Wesley
  • 出版日期: 1999-01-01
  • 售價: $2,210
  • 貴賓價: 9.5$2,100
  • 語言: 英文
  • 頁數: 528
  • 裝訂: Paperback
  • ISBN: 0201379368
  • ISBN-13: 9780201379365
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

 

Table Of Contents

Preface.
Organization.
Tips.
Web Site.
Acknowledgments.

 

 

 

 

I. WININET BASICS.

 

 

 

1. WinInet Basics.

 

Is This Book for You?
Prerequisites.
Book Overview by Chapter.
Internet Overview.
Developing Internet Applications.
Internet Protocols.
Clients.
Server Components.

Introducing WinInet.
Standard API.
What Can You Do with WinInet?
HTTP, FTP, and Gopher.
Dependencies.
Redistributing WinInet.
Programming with WinInet.
Windows CE.

Documentation and Samples.
Microsoft Internet Client SDK.
Samples.

Advantages of WinInet over Winsock.
Easy to Use.
Built-in Caching.
Easy Connections.
Security.

Advantages of Winsock over WinInet.
Your First WinInet Program.


2. WinInet General Functions.

 

API Flags.
HINTERNET Handles.
WinInet General Functions.
Handle Hierarchy.
InternetOpen.
The Next Step.
InternetConnect.
InternetSetStatusCallback.
InternetCloseHandle.
General Internet Function Summary.

Internet File Functions.
InternetReadFile.
InternetWriteFile.
InternetFindNextFile.
InternetSetFilePointer.
Reading Files without the Content-Length Header.
Locking File Resources.

Internet Option Functions.
Internet Time Functions.
Other Internet Helper Functions.
InternetConfirmZoneCrossing.
InternetErrorDlg.
InternetGetLastResponseInfo.


3. Handling URLs.

 

 

URL Basics.
InternetOpenUrl.
Using SSL with InternetOpenUrl.
Helper Functions.
InternetCanonicalizeUrl.
InternetCombineUrl.
InternetCrackUrl.
InternetCreateUrl.

InternetOpenUrl Sample Program (InetURL).
Processing OnFetch.
HTTPS Example.
FTP Example.
Gopher Example.
 

II. WININET PROTOCOL-SPECIFIC FUNCTIONS.

 

 


4. HTTP Functions.

 

 

The HTTP Protocol.
The HTTP Model.
The HTTP Request.
The HTTP Response.
Using Telnet to Test HTTP.
A Complete HTTP Transaction.
HTTP Protocol Summary.

WinInet HTTP Functions.
HTTP Hierarchy.
HTTP Functions Overview.
HttpOpenRequest.
HttpAddRequestHeaders.
HttpSendRequest.
HttpQueryInfo.
InternetErrorDlg.
HTTP Authentication Techniques.
Using SSL with HTTP.
Web Page Retrieval Example.


5. FTP Functions.

 

 

The FTP Protocol.
The FTP Model.
FTP Commands.
FTP Replies.
Minimum Implementation.
A Typical FTP Scenario.
Using Telnet to Test FTP.
FTP Protocol Summary.

WinInet FTP Functions.
FTP Hierarchy.
FTP Functions Overview.
Sample FTP Client.
FTP Function Descriptions.


6. Gopher Functions.

 

 

The Gopher Protocol.
The Gopher Model.
Gopher Response Items.
Gopher Selector String.
Using Telnet to Test Gopher.
Gopher Protocol Summary.

Gopher+.
WinInet Gopher Functions.
Gopher Hierarchy.
Gopher Functions Overview.
Sample Gopher Application.
Function Descriptions.
 

III. MFC AND VISUAL BASIC.

 

 


7. WinInet MFC Internet Classes.

 

 

Benefits.
WinInet MFC Classes.
Getting Started with MFC WinInet Support.
CInternetSession.
CInternetFile.
CInternetConnection.
HTTP Classes.
FTP Classes.
Gopher Classes.
CInternetException.
Global MFC Internet Functions.


8. WinInet in Visual Basic.

 

 

VB 5.0.
Microsoft Internet Transfer Control.
Properties.
Methods.
Events.
Sample Application Using OpenURL.

Using WinInet Directly.
Declarations.
Revamped Sample Application Using InternetOpenUrl.
 

IV. ADVANCED WININET.

 

 


9. Asynchronous WinInet.

 

 

Synchronous versus Asynchronous.
Pros and Cons.
WinInet's Built-in Asynchronous Support.

MyFTP: Asynchronous FTP Sample Application.
Establishing the Asynchronous Internet Session.
InternetStatusCallback.
INTERNET_STATUS_CALLBACK.
OnConnect.
OnDisconnect.
OnGet.
OnPut.
MyStatusCallback Implementation.
FillRemoteList.
The Rest of the Details.


10. Reusable WinInet COM Components.

 

 

Stock Watcher Sample Application.
The QuoteProvider Component.
The CProviderYahoo Component.
Adding Interface Methods.
Didn't We Mean IQuoteProvider?
Connection Points.
IQuoteProviderEvent.
Creating Additional IQuoteProvider Components.

The QuoteProvider Component Category.
The HTTP Component.
IHttpRequest Interface.
WinInet and Threads--A Quick Thread Tutorial.
HttpWorkerThread.

The Stock Watcher Application.
CQuoteProviderDlg.
CQuoteProviderEventSink.
Refresh All.


11. Establishing a Dial-up Connection.

 

 

Prerequisites.
WinInet Dial-up Functions.
InternetAutodial and InternetAutodialHangup.
InternetDial and InternetHangUp.
InternetGoOnline.
InternetGetConnectedState.
InternetSetDialState.
To Use or Not to Use . . . That Is the Question!.

Remote Access Service.
Using the RAS Common Dialogs.
Begin and End a RAS Connection with RasDial and RasHangUp.
Working with Phonebook Entries.
Windows NT 4.0 RAS AutoDial.
RAS Connection Information.
 

V. INTERNET CLIENT/SERVER APPLICATIONS.

 

 


12. Internet Client/Server Applications with WinInet, ISAPI, and ASP.

 

 

Internet Client/Server Development Decisions.
Client Decisions.
Server Decisions.

BugTracker: A Client/Server Bug-Tracking System.
BugTracker Overview.
Sample ISAPI Extension DLL.
Active Server Pages.
Generating an HTML View.
Sample WinInet Client.

Appendix A. TCP/IP Tutorial.
TCP/IP Protocol Layering.
TCP.
IP.
The Physical Layer.

Appendix B. API Flags.
Appendix C. Internet Option Flags.
Appendix D. Error Messages.
Appendix E. Recommended Reading.
WinInet.
Internet Protocols.
COM and ATL.
Multithreading.
ISAPI and ASP.
Index. 0201379368T04062001

 

 


Back to Top

 

 

商品描述(中文翻譯)

```

 

目錄

前言。

組織。

提示。

網站。

致謝。

 

 

 

 

I. WININET 基礎。

 

 

 

1. WinInet 基礎。

 

這本書適合你嗎?

前置條件。

書籍概述(按章節)。

網際網路概述。

開發網際網路應用程式。

網際網路協定。

客戶端。

伺服器組件。



介紹 WinInet。

標準 API。

你可以用 WinInet 做什麼?

HTTP、FTP 和 Gopher。

依賴性。

重新分發 WinInet。

使用 WinInet 編程。

Windows CE。



文檔和範例。

Microsoft Internet Client SDK。

範例。



WinInet 相對於 Winsock 的優勢。

易於使用。

內建快取。

簡單的連接。

安全性。



Winsock 相對於 WinInet 的優勢。

你的第一個 WinInet 程式。



2. WinInet 一般函數。

 

API 標誌。

HINTERNET 句柄。

WinInet 一般函數。

句柄層級。

InternetOpen。

下一步。

InternetConnect。

InternetSetStatusCallback。

InternetCloseHandle。

一般網際網路函數摘要。



網際網路檔案函數。

InternetReadFile。

InternetWriteFile。

InternetFindNextFile。

InternetSetFilePointer。

在沒有 Content-Length 標頭的情況下讀取檔案。

鎖定檔案資源。



網際網路選項函數。

網際網路時間函數。

其他網際網路輔助函數。

InternetConfirmZoneCrossing。

InternetErrorDlg。

InternetGetLastResponseInfo。



3. 處理 URL。

 

 

URL 基礎。

InternetOpenUrl。

在 InternetOpenUrl 中使用 SSL。

輔助函數。

InternetCanonicalizeUrl。

InternetCombineUrl。

InternetCrackUrl。

InternetCreateUrl。



InternetOpenUrl 範例程式 (InetURL)。

處理 OnFetch。

HTTPS 範例。

FTP 範例。

Gopher 範例。

 

II. WININET 協定特定函數。

 

 




4. HTTP 函數。

 

 

HTTP 協定。

HTTP 模型。

HTTP 請求。

HTTP 回應。

使用 Telnet 測試 HTTP。

完整的 HTTP 交易。

HTTP 協定摘要。



WinInet HTTP 函數。

HTTP 層級。

HTTP 函數概述。

HttpOpenRequest。

HttpAddRequestHeaders。

HttpSendRequest。

HttpQueryInfo。

InternetErrorDlg。

HTTP 認證技術。

在 HTTP 中使用 SSL。

網頁檢索範例。



5. FTP 函數。

 

 

FTP 協定。

FTP 模型。

FTP 命令。

FTP 回覆。

最小實作。

典型的 FTP 情境。

使用 Telnet 測試 FTP。

FTP 協定摘要。



WinInet FTP 函數。

FTP 層級。

FTP 函數概述。

範例 FTP 客戶端。

FTP 函數描述。



6. Gopher 函數。

 

 

Gopher 協定。

Gopher 模型。

Gopher 回應項目。

Gopher 選擇字串。

使用 Telnet 測試 Gopher。

Gopher 協定摘要。



Gopher+。

WinInet Gopher 函數。

Gopher 層級。

Gopher 函數概述。

範例 Gopher 應用程式。

函數描述。

 

III. MFC 和 Visual Basic。

 

 




7. WinInet MFC 網際網路類別。

 

 

優點。

WinInet MFC 類別。

開始使用 MFC WinInet 支援。

CInternetSession。

CInternetFile。

CInternetConnection。

HTTP 類別。

FTP 類別。

Gopher 類別。

CInternetException。

全域 MFC 網際網路函數。



8. 在 Visual Basic 中使用 WinInet。

 

 

VB 5.0。

Microsoft Internet Transfer Control。

屬性。

方法。

事件。

使用 OpenURL 的範例應用程式。



直接使用 WinInet。

聲明。

使用 InternetOpenUrl 的改版範例應用程式。

 

IV. 進階 WinInet。

 

 




9. 非同步 WinInet。

 

 

同步與非同步。

優缺點。

WinInet 的內建非同步支援。



MyFTP:非同步 FTP 範例應用程式。

建立非同步網際網路會話。

InternetStatusCallback。

INTERNET_STATUS_CALLBACK。

OnConnect。

OnDisconnect。

OnGet。

OnPut。

MyStatusCallback 實作。

FillRemoteList。

其餘細節。



10. 可重用的 WinInet COM 元件。

 

 

股票監視器範例應用程式。

QuoteProvider 元件。

CProviderYahoo 元件。

添加介面方法。

難道我們不是指 IQuoteProvider 嗎?

連接點。

IQuoteProviderEvent。

創建額外的 IQuoteProvider 元件。



QuoteProvider 元件類別。

HTTP 元件。

IHttpRequest 介面。

WinInet 和執行緒--快速執行緒教程。

HttpWorkerThread。



股票監視器應用程式。

CQuoteProviderDlg。

CQuoteProviderEventSink。

全部刷新。



11. 建立撥號連接。