Created
November 16, 2016 16:43
-
-
Save AndyNovo/8ebe09f93bcfaa021d1e551c7b263d11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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