home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / range / readme.txt < prev    next >
Text File  |  1996-05-28  |  1KB  |  29 lines

  1. This sample is intended primarily to demonstrate http read range but can also 
  2. be used for simple GET requests without ranges.  Application writers may be 
  3. interested in plugging into the interface defined in range.h, one C call to 
  4. initiate the request and one C callback to receive status and data.
  5.  
  6. Other interesting aspects include...
  7.  
  8. Urlmon
  9. * use of urlmon from a console app (not required)
  10. * correct use of IStream::Read return values 
  11. * implementation of IHttpNegotiate to add request headers
  12. * use of IWininetHttpInfo to parse response headers
  13.  
  14. Wininet
  15. * passing INTERNET_FLAG_OFFLINE to InternetOpen
  16. * calling InternetSetFilePointer in offline mode
  17. * calling InternetTimeFromSystemTime
  18.  
  19. Files included in this sample...
  20.     range.h         HttpReadRequest constants, structures, and prototypes.
  21.     range.c         test stub (omit when linking app with remaining files)
  22.     cache.cpp       HttpReadRequest entry point and wininet cache handling.
  23.     download.cpp    HttpReadFromServer entry point and urlmon downloading.
  24.     makefile        makefile for use with inetsdk.mak (note console=1)
  25.  
  26. Limitations
  27. * Microsoft-IIS 2.0b2 may omit some boundaries between multiple ranges.
  28. * Netscape-FastTrack 2.0b3 claims to accept ranges but never returns them.
  29.