[Open Source Projects]  [Object CGI]  [License] 

Object CGI - Easy C Based CGI

 

This release of "Object CGI" is the first public release. It is available for use under the LGPL (see the LICENSE file).

 

To download "Object CGI" save one of the following links:

 

Object CGI implements a wrapper around all the CGI data that can be received from an HTTP server. To use Object CGI, simply call Cgi_Open(), at that time all CGI data is read and parsed. When you are through using the CGI data call Cgi_Close() to free any allocated data and delete any uploaded files owned by Object CGI.

 

The CGI data can be accessed with the following calls:

 

Additionally the following utility functions are provided:

 


 

Cgi_Open(input_file)

 

Cgi_Close()

 

Cgi_GetCookie(name)  

 

Cgi_GetEnvValue(name, default_value)  

  

Cgi_GetFilename(name)  

 

 Cgi_GetValue(name)

 

Cgi_GetAllValues(name)  

  

Cgi_EscapeLTGT(string)  

 

Cgi_FirstCookie()  

 

Cgi_FirstValue()  

 

Cgi_NextCookie(pair)  

 

Cgi_NextValue(pair)  

 

Cgi_OwnsFiles(cgi_owns_files)  

 

Cgi_PrintEnv()  

 

Cgi_PrintNameValuePairs()

 

Cgi_SetFileDir(file_directory)  

 

Cgi_strdup(string)  

 

Cgi_unescape_url(url_string)