/Users/craigcornelius/Projects/SPRING Mac Release 0.2/http_socket.h

Go to the documentation of this file.
00001 // $Id: http_socket.h,v 1.1 2006/03/10 22:25:53 hawaii Exp $
00002 // $Copyright: (c)2001 National Biocomputation Center, Stanford University $
00003 
00004 //
00005 //  http_socket.h
00006 //
00007 //  To connect to a web server. Send/Receive data from a web server (HTTP protocol).
00008 //
00009 //  Author: Chris (caschwan@hawaii.edu) - Hawaii
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         // send a request using HTTP POST
00027     char* postRequest(char* filePath, char* requestData, int requestSize, int &responseSize);
00028 
00029 private:
00030     
00031         // the host we connect to (e.g. "123.13.3.3" -OR- "tri.hawaii.edu")
00032         char* host;
00033 
00034 };
00035 
00036 #endif   // Http_Socket_Header

Generated on Thu Aug 30 11:03:14 2007 for SPRING Mac by  doxygen 1.5.3