Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created November 16, 2016 16:43
Show Gist options
  • Save AndyNovo/8ebe09f93bcfaa021d1e551c7b263d11 to your computer and use it in GitHub Desktop.
Save AndyNovo/8ebe09f93bcfaa021d1e551c7b263d11 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <stdlib.h>
using namespace std;
int main () {
cout << "Content-type:text/html"<<endl<<endl;
cout << "<html>"<<endl;
cout << "<body>"<<endl;
char *value = getenv("QUERY_STRING");
cout << "<p>QUERY_STRING: " << value << "</p>" << endl;
cout << "</body>" << endl;
cout << "</html>" << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment