rudecgi(3)
π rudecgi(3) β the manual page, but make it cute π
okay bestie, so this is a page from the User Manuals section 3, and it's all about rudecgi. buckle up, we're going on a little tour π¦
β¨ NAME β¨
rudecgi β access formdata in CGI applications π
πΈ SYNOPSIS πΈ
#include <rude/cgi.h>
rude::CGI CGI();
static void finish();
static const char *version();
static void setPathDelimiter(char delimiter);
static void addPathMapName(const char *pathname );
static void setPathMapVoid(const char *emptyname);
static void parsePathMap(bool shouldParse);
static void parsePath(bool shouldParse);
static void parseCookies(bool shouldParse);
static void maxPostLength(long bytes);
void setCaseSensitive(bool isCaseSensitive);
int numValues() const;
int numValues(const char *fieldname) const;
const char *fieldnameAt(int position) const;
bool exists(const char *fieldname) const;
bool isFile(int index) const;
bool isFile(const char *fieldname) const;
bool isFile(const char *fieldname, int position);
const char *datasource(int index) const;
const char *datasource(const char *fieldname) const;
const char *datasource(const char *fieldname, int position) const;
const char * operator[](const char *fieldname);
const char * operator[](int x);
const char *value(int index) const;
const char *value(const char *fieldname) const;
const char *value(const char *fieldname, int position) const;
const char *length(int index) const;
const char *length(const char *fieldname) const;
const char *length(const char *fieldname, int position) const;
const char *contenttype(int index) const;
const char *contenttype(const char *fieldname) const;
const char *contenttype(const char *fieldname, int position) const;
const char *filename(int index) const;
const char *filename(const char *fieldname) const;
const char *filename(const char *fieldname, int position) const;
const char *filepath(int index) const;
const char *filepath(const char *fieldname) const;
const char *filepath(const char *fieldname, int position) const;
std::ostream& operator<<(std::ostream& os,const CGI& cgi);
π DESCRIPTION π
The RudeCGI library is what you use to access formdata inside your C++ CGI applications. that's it, that's the whole vibe π
π EXAMPLES π
Examples, how-to's and tutorials can also be found at the rudeserver.com website β¨
π¦ Basic Usage π¦
#include <rude/cgi.h> #include <iostream>
using namespace std; using namespace rude;
int main(void) {
// Obtain the cgi instance
//
CGI cgi;
// Print out standard CGI HTTP Response header
//
cout << "Content-Type: text/html0;
// Print out HTML
//
cout << "<html><body>"
<< "You selected the color: " ;
// use the cgi object to obtain form data
//
cout << cgi["color"];
cout << "</body></html>";
return 0; }
no cap, that's the example exactly as it is in the original, typos and all π don't come for me, I just work here π
π SEE ALSO π
rudeconfig(3), rudedatabase(3), rudesocket(3), rudesession(3) β the whole friend group fr fr π«Ά
π REPORTING PROBLEMS π
okay so before you report a problem, bestie, please check the rudeserver.com web site to verify that you have the latest version of rudecgi; otherwise, obtain the latest version and see if the problem still exists. like, don't be out here reporting bugs from 2003 π
Please read the FAQ at:
http://www.rudeserver.com/
before asking for help. Send questions and/or comments to matt@rudeserver.com π
π AUTHORS π
Copyright (C) 2000 Matthew Flood (matt@rudeserver.com) π
This software is provided "as-is," without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. See the distribution directory with respect to requirements governing redistribution. Thanks to all the people who reported problems and suggested various improvements in rudecgi; who are too numerous to cite here. π«Ά
and that's the whole page, periodt π this was Version 4.1.1, dated January 11, 2006, and it lives in the rudecgi(3) manual β iconic, honestly πβ¨π
π¦ where this page comes from
- debian bookworm: librudecgi5 5.0.0-1.1+b2 Β· GPL-2.0-or-later
- debian trixie: librudecgi5 5.0.0-1.1+b3 Β· GPL-2.0-or-later
- ubuntu jammy: librudecgi5v5 5.0.0-1.1ubuntu2 Β· GPL-2.0-or-later
- ubuntu noble: librudecgi5v5 5.0.0-1.1ubuntu2 Β· GPL-2.0-or-later
- ubuntu resolute: librudecgi5v5 5.0.0-1.1ubuntu3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms