You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
956 B
C++

/////////////////////////////////////////////////////////////////////////////
//Ö÷Òª¹¦ÄÜ:
// HTTPÀà
//
//³ÌÐò±àд: 2008-11-09
//
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "internetget.h"
class CHttpGet :
public CInternetGet
{
public:
CHttpGet(void);
virtual ~CHttpGet(void);
virtual bool IsOpenConnection();
// open the connection
virtual bool OpenConnection(CString server, LPCTSTR lpstrUserName=NULL, LPCTSTR lpstrPassordword=NULL);
// close the connection
virtual bool CloseConnection();
virtual bool Open(LPCTSTR lpstrRemote);
virtual void Close(void);
virtual bool IsOpen(void);
virtual UINT Read(void* lpBuf, UINT nCount);
virtual ULONGLONG Seek(ULONGLONG nOffset, UINT nFrom);
virtual CStdioFile* GetStdioFile(void);
CHttpFile* GetFile(void);
CHttpFile* OpenFile(LPCTSTR strRemoteObject);
protected:
CHttpConnection *pHttpConnection;
CHttpFile* m_pHttpFile;
};