CGIPack v0.1.1 documentation
API Documentation¶
Application that runs a CGI script.
If you add a Location header you should also add this header:
Status: 301 Redirecting
I believe Apache sets this for you but with this implementation you must do so yourself.
- exception cgipack.cgiapp.CGIError¶
- Raised when the CGI script can’t be found or doesn’t act like a proper CGI script.
- class cgipack.cgiapp.CGIApplication(script, path=None, include_os_environ=True, query_string=None, executable=None)¶
- This object acts as a proxy to a CGI application. You pass in the script path (script), an optional path to search for the script (if the name isn’t absolute) (path). If you don’t give a path, then $PATH will be used.