source: cheroxy/trunk/include/CRXHttpRequest.h@ 17

Last change on this file since 17 was 17, checked in by cheese, 11 years ago

#1 fix crash bug at some sites like http://msdn.com .

File size: 696 bytes
Line 
1/**
2 * CRXHttpRequest.h
3 */
4#ifndef __CRXHTTPREQUEST_H__
5#define __CRXHTTPREQUEST_H__
6
7#include "CRXHttpMessage.h"
8
9class CRXHttpRequest : public CRXHttpMessage
10{
11private:
12 std::string mMethod;
13 std::string mUrl;
14
15 std::string mProtocol;
16 std::string mHost;
17 int mPort;
18
19public:
20 CRXHttpRequest (void);
21
22private:
23 void Parse (void);
24
25public:
26 void SetRequest (const char * aHttpRequest);
27 std::string GetRequest (void) const;
28
29 CRXHttpRequest & operator = (const char * aHttpRequest);
30
31public:
32 std::string GetURL (void) const;
33 std::string GetHost (void) const;
34 int GetPort (void) const;
35};
36
37#endif // #ifndef __CRXHTTPREQUEST_H__
Note: See TracBrowser for help on using the repository browser.