{"id":20651589,"url":"https://github.com/rafaeljusto/cgiplus","last_synced_at":"2025-10-06T12:04:26.468Z","repository":{"id":1562821,"uuid":"1980139","full_name":"rafaeljusto/CGIplus","owner":"rafaeljusto","description":"Tiny C++ tool to parse web requests","archived":false,"fork":false,"pushed_at":"2012-05-16T12:01:44.000Z","size":481,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T20:59:15.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rafael.net.br/EN/projects/CGIplus/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"greatghoul/remote-working","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafaeljusto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-30T20:28:48.000Z","updated_at":"2022-09-10T09:56:20.000Z","dependencies_parsed_at":"2022-09-23T23:10:55.735Z","dependency_job_id":null,"html_url":"https://github.com/rafaeljusto/CGIplus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rafaeljusto/CGIplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljusto%2FCGIplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljusto%2FCGIplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljusto%2FCGIplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljusto%2FCGIplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaeljusto","download_url":"https://codeload.github.com/rafaeljusto/CGIplus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaeljusto%2FCGIplus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264000631,"owners_count":23542113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T17:28:22.313Z","updated_at":"2025-10-06T12:04:26.415Z","avatar_url":"https://github.com/rafaeljusto.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"CGIplus\n=======\n\n**CGIplus** is a C++ tool to parse CGI requests. Some features that\nyou will find:\n\n  * Easy interface - use [] and () operators to get (Cgi) or define\n    (Builder) GET/POST data and Cookie respectively\n\n  * Protection against cross-site scripting - Some special symbols are\n    removed from the input data\n\nPrerequisits\n------------\n\n  * g++ 4.6 - \u003chttp://gcc.gnu.org/\u003e\n  * python 2.7 - \u003chttp://www.python.org/\u003e\n  * scons 2.0 - \u003chttp://www.scons.org/\u003e\n  * libboost-system-dev 1.4 - \u003chttp://www.boost.org\u003e\n  * libboost-test-dev 1.4 - \u003chttp://www.boost.org\u003e\n  * libboost-regex-dev 1.4 - \u003chttp://www.boost.org\u003e\n\n  The project was compiled using the above compilers and libraries,\n  higher versions should work well.\n\nInstallation\n------------\n\n  Define the compiler using the CXX environment variable, by default\n  is used \"g++\".\n\n    # scons\n    # scons install\n\n  For API documentation:\n\n    # scons doc\n\nUsage\n-----\n\n  Source code:\n\n    #include \u003ccstdlib\u003e\n    \n    #include \u003ccgiplus/Builder.hpp\u003e\n    #include \u003ccgiplus/Cgi.hpp\u003e\n    \n    int main()\n    {\n      // Simulating inputs\n      setenv(\"QUERY_STRING\", \"test=abc123\", 1);\n      setenv(\"REQUEST_METHOD\", \"GET\", 1);\n      \n      string form = \"The test has as content: \u003c!-- content --\u003e\";\n      \n      cgiplus::Cgi cgi;\n      cgiplus::Builder builder;\n      \n      builder.setForm(form);\n      builder[\"content\"] = cgi[\"test\"];\n      builder.show();\n\n      return 0;\n    }\n\n  Compliling:\n\n    g++ -std=c++0x test.cpp -o test -lcgiplus -lboost_regex\n\n  Output:\n\n    Content-type: text/html\n\n    The test has as content: abc123\n\nContact\n-------\n\n  Rafael Dantas Justo  \n  \u003cadm@rafael.net.br\u003e\n\nLicense\n-------\n\n    CGIplus Copyright (C) 2012 Rafael Dantas Justo\n\n    This file is part of CGIplus.\n\n    CGIplus is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    CGIplus is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with CGIplus.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaeljusto%2Fcgiplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaeljusto%2Fcgiplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaeljusto%2Fcgiplus/lists"}