This is a simple python script which does wscgi communication with a http server (in my case httpd), you may take it as example. http://www.lpthe.jussieu.fr/~talon/show_index.fcgi The part of interest to you is after def request_handler(environ, start_response) : and especially after try: from flup.server.fcgi import WSGIServer