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

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

Serving Software Downloads in 956 Categories, Downloaded 50.381.075 Times

CGIParse 0.0.1

  Date Added: January 10, 2010  |  Visits: 1.387

CGIParse

Report Broken Link
Printer Friendly Version


Product Homepage
Download (116 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
USER REVIEWS
More Reviews or Write Review


CGIPARSE RELATED
Libraries  -  Aapl C++ Template Library 2.14
Aapl is a C++ template library for generic programming. Aapl supports different generic programming paradigms by providing variations of standard data structures. For example, a by-value linked list template may be used to store a user supplied...
122.88 KB  
Libraries  -  The C++ Cmdline Library 0.3
The C++ Cmdline Library provides a framework for handling command line options and arguments. Either variables (of any type) are set to values given at the command line. Or user defined functions are called with arguments (of any type) read from...
849.92 KB  
Libraries  -  TOAD C++ GUI Library 0.64.1
TOAD C++ GUI Library aims to make GUI development being more fun. The TOAD C++ GUI Library is a set of C++ classes for developing X Window applications. Since there are so many other GUI libraries around (the living ones: GTK+, Qt, LessTif,...
1024 KB  
Libraries  -  C Generic Library 0.4.2
C Generic Library is a generic data structure library is a bunch of data structures that are designed and created in as generic a fashion as possible. Each data structure will contain its own basic memory management, be able to handle any object...
26.62 KB  
Libraries  -  C Algorithms Library 1.0.0
C Algorithms Library is a collection of commonly used Computer Science algorithms. The focus is on code that is well documented and tested, portable, and reusable. The C Programming Language has a much smaller standard library compared to...
337.92 KB  
Libraries  -  Extended C++ Callback Library 0.0.6
Extended C++ Callback Library provides functors and delegates for up to ten parameters. Some callback "containers" will make life easier in special cases. For example, with DelegateList, you are able to execute all callbacks with a single call....
532.48 KB  
Libraries  -  ustring C++ Unicode library 0.5
ustring is a C++ library to implement the complete Unicode 3.0 standard. It gives an easy access to the properties of each of the 10600 characters defined by the Unicode 3.0 standard, including the uppercase and lowercase mapping, category and...
143.36 KB  
Development Tools  -  From Fortran, call MATLAB Compiler C shared library 1.0
The MATLAB Compiler (v4, R14 onwards) can package MATLAB code into an executable or C/C++ shared library. Calling a C shared library from Fortran, however, can be difficult. The mixed-language issue is C vs. Fortran calling conventions. This is an...
10 KB  
Libraries  -  mimetic 0.9.2
mimetic is a powerful, full featured, STL-based, standards compliant C++ MIME library. mimetic is a GPL MIME library written in C++ designed to be easy to use and integrate but yet fast and efficient. Im a fan of the C++ Standard Library so...
419.84 KB  
Science  -  Armadillo C++ matrix library 3.1.91
Armadillo is a fast, template based, C++ matrix library with optional interface to LAPACK and ATLAS libraries. Integer, floating point and complex numbers are supported, as well as disk storage and a subset of trigonometric and statistics functions.
2.79 MB  
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 4.0.0
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