Mini application server API for C++.
inet
Class CzzCGI
CzzParameterMap
|
+--CzzCGIParameterParser
|
+--CzzCGI
in zz_cgi.h
- class CzzCGI
- extends CzzCGIParameterParser
Parses CGI-parameters.
Supports POST and GET encoded as:
application/x-www-form-urlencoded or
multipart/form-data
- Author:
- Toni Thomsson, toni@tonjac.org
m_Length
protected long m_Length;
m_Log
protected CzzLog m_Log;
m_Method
protected CzzString m_Method;
m_MIME
protected CzzMIMEBody* m_MIME;
m_Request
protected char* m_Request;
m_Type
protected CzzString m_Type;
CzzCGI
public CzzCGI( void );
-
Constructor
~CzzCGI
public virtual ~CzzCGI();
getFile
public CzzString getFile( const CzzString& name );
- Returns path to file uploaded via POST
- Parameters:
name - Name
getLength
public int getLength( void );
- Length of raw request buffer
operator[]
public virtual CzzString operator[]( const CzzString& var );
- Get variabel
- Parameters:
var - Name
parseHeaders
protected void parseHeaders( char* hdrs );
request
public char* request( void );
- Raw request buffer