Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.292.235 Times

CGIParse 0.0.1

  Date Added: January 10, 2010  |  Visits: 733

CGIParse

Report Broken Link
Printer Friendly Version


Product Homepage
Download (96 downloads)

CGIParse project is a C++ class library for parsing the input of a cgi program. Starting To start using CGIParse you first have to include the cgiparse.h header: #include < cgiparse.h > Thereafter you have to define the CGIParse object: CGIParse cgi; The CGIParse object then automatically reads the headers and the variables parsed to the program using environment variables and (if using POST or PUT) standard input. Now the library has been initialized and we are ready to use it. Header The headers parsed to CGIParse is easily available to the programmer after the library has been initialized. To retrieve them CGIParse provides functions named after the environment variable it retrieves. Fx. to retrieve the SERVER_SOFTWARE environment variable, you use the function server_software(). The functions providing these environment variables are: char* server_software(void); char* server_name(void); char* gateway_interface(void); char* server_protocol(void); int server_port(void); int request_method(void); char* request_methodc(void); char* path_info(void); char* path_translated(void); char* script_name(void); char* query_string(void); char* remote_host(void); char* remote_addr(void); char* auth_type(void); char* remote_user(void); char* remote_ident(void); char* content_type(void); int content_length(void); char* http_accept(void); char* http_user_agent(void); char* http_referer(void); char* input(void); It is important to note that if the environment variable you are trying to access doesnt exist, the function will return NULL if you were trying to retrieve a char* and -1 if its a int. Variables The variables from the browser can of course also be accessed by CGIParse. To retrieve the number of variables, you can use the int num() function, and to retrieve the variable names and parameters number i, you user the functions: char* name ( int i ); char* parm ( int i ); You can also use the function char* parm ( const char *n ); to retrieve the parameter of the variable with name n. Debugging When debugging your CGI application it can sometimes be useful to see what is transfered to the CGI application. You could of course program this yourself, but for your ease some functions for it has been provided the function htable() draws a html table with the header retrieved from CGI. CGIParse also provide you with a function called ptable() which prints the variables sent to the CGI application..

Requirements: No special requirements
Platforms: Linux
Keyword: C Class C Class Library Cgiparse Char Class Library Int Libraries Programming Retrieve Server Variables Void
Users rating: 0/10

License: Freeware Size: 3.07 KB
CGIPARSE RELATED
Libraries  -  libbsl 0.9.1
libbsl (Basic System Library) is a powerful, easy to use and fully thread safe C++ template class library for frequently recurring (machine/OS oriented) programming problems. All fundamental objects in libbsl are freely copyable and shareable...
1.04 MB  
Libraries  -  b64 1.2.4
b64 is a very small and simple library that provides Base-64 encoding and decoding, according to RFC-1113, in C and C++. The b64 project is released under the BSD license, which basically means its free for any use, but you cant claim its yours....
358.4 KB  
Code Management Tools  -  C to C++ 1.4.0
C to C++ is a Python script that converts C code to C++ code. The main program is ctocpp.py that performs successive stages for converting C to C++. A script, ctocpp gives it as parameter to the python interpreter with options you add. The...
102.4 KB  
Libraries  -  GNU Scientific Library 1.9
The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License. GNU Scientific Library provides a wide range of mathematical routines such as random number generators,...
2.3 MB  
Libraries  -  dclog 1.1.0
dclog is a logging library for C and C++. It supports the concept of log levels, configurable logfile timestamps, and a configurable prefix to log messages. Installation: 1. From source: make all make install (as root) 2. Gentoo users:...
63.49 KB  
Libraries  -  GNOME Structured File Library 1.14.5
GNOME Structured File Library is a utility library for reading and writing structured file formats. Support for MS OLE2 streams is complete, as is zip import. There is also support for document metadata and some initial work on decompressing VBA...
716.8 KB  
Libraries  -  Minimal OpenGL Utility Library 0.2
Minimal OpenGL Utility Library (MOGUL) is a library similar to GLUT, only with fewer features. It lets you write window-system-independent OpenGL programs with even fewer lines of code than GLUT. The project currently supports X11 and Win32....
112.64 KB  
Libraries  -  Libsdf 0.1
Libsdf library is a shared library which, when preloaded, will intercept calls to a GNU libc functions open() and open64(), and if the first argoment of these functions is a remote file (http:// or ftp://), it will copy this file in a local path...
10.24 KB  
Libraries  -  Class::ArrayObjects 1.02
Class::ArrayObjects is a Perl utility class for array based objects. SYNOPSIS package Some::Class; use Class::ArrayObjects define => { fields => [qw(_foo_ _bar_ BAZ)], }; or package Other::Class; use base Some::Class; use...
6.14 KB  
Libraries  -  DM1 Threads Library 1.0.5
DM1 Thread Library is part of the DM1 project. This library was born out of my need to have a portable C++ Thread library that would be simple to use, and would provide all the necessary Threads functionality I required for the DM1 project....
235.52 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB