Essential Winlnet: Developing Applications Using the Windows Internet API with RAS, ISAPI, ASP, and COM / Edition 1

Essential Winlnet: Developing Applications Using the Windows Internet API with RAS, ISAPI, ASP, and COM / Edition 1

by Aaron Skonnard
     
 

ISBN-10: 0201379368

ISBN-13: 9780201379365

Pub. Date: 12/16/1998

Publisher: Addison-Wesley

The era of stand-alone, self-contained applications is rapidly ending. Distributed, networked applications have become critical to meeting business needs in a fast-paced, dynamic world. Until now, building networked Windows applications wasn't easy. But now Microsoft has released a powerful new Windows Internet API (WinInet) that dramatically simplifies the

Overview

The era of stand-alone, self-contained applications is rapidly ending. Distributed, networked applications have become critical to meeting business needs in a fast-paced, dynamic world. Until now, building networked Windows applications wasn't easy. But now Microsoft has released a powerful new Windows Internet API (WinInet) that dramatically simplifies the process of creating Internet-enabled Windows applications.

WinInet makes it possible to create Windows applications that can download Web pages, access server applications, upload and download files, and traverse Gopher document systems--allowing developers to build such sophisticated Windows Internet applications as full-fledged Web browsers, home banking applications, and stock portfolio programs.

Essential WinInet is a comprehensive guide to this powerful Windows Internet API. It starts with a tutorial on WinInet basics and a methodical description of the API's protocol-specific functions for HTTP, FTP, and Gopher, then proceeds to explore more advanced topics, examining how WinInet works with other Internet tools and client/server technologies. This book addresses such essential topics as:

  • Using WinInet with MFC and Visual Basic
  • Understanding asynchronous WinInet
  • Writing HTTP COM components
  • Establishing dial-up connections, including applying the RAS API
  • Introducing the concept of client/server Internet programming
  • Implementing a complete client/server solution using WinInet with ISAPI and ASP

Numerous sample applications throughout this book explore WinInet's capabilities and show you how to put the API to work. The samples include a full-featured asynchronous FTP client for Windows; a stock portfolio application that can connect to real-time Internet stock quote providers; and a client/server application that incorporates WinInet, ISAPI, and ASP. Much more than just a tutorial, this practical resource contains the kinds of pointers, work-arounds, and creative solutions that will save you hours of frustration and inspire you to make full use of the API.

0201379368B04062001

Product Details

ISBN-13:
9780201379365
Publisher:
Addison-Wesley
Publication date:
12/16/1998
Series:
Addison-Wesley Microsoft Technology Series
Pages:
528
Product dimensions:
7.24(w) x 9.05(h) x 1.18(d)

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

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >