#!/usr/bin/env python import os print 'Content-Type: text/html\n\n' print os.environ['QUERY_STRING'] # run server with command # python -m CGIHTTPServer