00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_VMSHTTPREQUEST_H__C1D057E5_A9E0_4E3E_A0E1_AD3AF1A663C8__INCLUDED_) 00007 #define AFX_VMSHTTPREQUEST_H__C1D057E5_A9E0_4E3E_A0E1_AD3AF1A663C8__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <winsock.h> 00014 #include <string> 00015 00016 class vmsHttpRequest 00017 { 00018 public: 00019 LPCSTR get_Auth (); 00020 00021 BOOL Receive (SOCKET sConnection); 00022 00023 LPCSTR get_RequestType (); 00024 00025 LPCSTR get_ResourcePath(); 00026 00027 vmsHttpRequest(); 00028 virtual ~vmsHttpRequest(); 00029 00030 protected: 00031 00032 std::string ExtractString (LPCSTR &psz); 00033 BOOL IsCLRF (LPCSTR psz); 00034 BOOL IsBlank (char c); 00035 00036 std::string m_strRequestType; 00037 std::string m_strHttpVersion; 00038 std::string m_strResourcePath; 00039 00040 std::string m_strAuth; 00041 00042 BOOL ParseRequest (LPCSTR pszReq); 00043 }; 00044 00045 #endif
1.5.6