home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / httpsvr / request.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.6 KB  |  55 lines

  1. // Request.h : interface of the CRequest class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1997-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CRequest : public CObject
  14. {
  15.     DECLARE_DYNCREATE(CRequest)
  16.  
  17. public:
  18.     // Construction....
  19.     CRequest();
  20.     ~CRequest();
  21.  
  22.     // Attributes....
  23.     CString             m_strPathTranslated;
  24.     CString             m_strPathInfo;
  25.     CString             m_strHost; // host's address
  26.     CString             m_strMethod; // GET, HEAD or POST
  27.     CString             m_strURL;
  28.     CString             m_strVersion; // HTTP/1.0
  29.     CMapStringToString  m_mapHeaders;
  30.     CByteArray          m_baBody;
  31.     int                 m_cbBody;
  32.     CString             m_strFullPath;
  33.     DWORD               m_dwAttr;
  34.     DWORD               m_dwExecute; // executable type
  35.     CString             m_strArgs; // string after '?'
  36.     UINT                m_uStatus;
  37.     BOOL                m_bDone;
  38.     UINT                m_cbSent;
  39.     CTime               m_timeReq; // time of request
  40.  
  41.     // access routines....
  42.     CString GetHeaderValue( CString strName );
  43.     int     AddRef( void );
  44.     int     Release( void );
  45.  
  46.     enum AppFlags {
  47.         APP_NONE    = 0x0000,
  48.         APP_EXECUTE = 0x0001,
  49.         APP_CGI     = 0x0002,
  50.         APP_ISAPI   = 0x0004 };
  51.  
  52. protected:
  53.     int     m_nRefs;
  54. };
  55.