00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef Http_Socket_Header
00012 #define Http_Socket_Header
00013
00014 #include "socket.h"
00015
00016 class HttpSocket : public Socket {
00017
00018 public:
00019
00020 HttpSocket(char* host, int port = 80);
00021 virtual ~HttpSocket();
00022
00023 static const char* rcsid;
00024 static int debug;
00025
00026
00027 char* postRequest(char* filePath, char* requestData, int requestSize, int &responseSize);
00028
00029 private:
00030
00031
00032 char* host;
00033
00034 };
00035
00036 #endif // Http_Socket_Header