Configure CGI script » History » Version 1
Version 1/6
-
Next ยป -
Current version
Rob Tjalma, 08/26/2016 11:33 AM
Configure CGI script¶
Instructions about how to create a CGI script for connecting to the SQLite database.
Script example¶
#!/bin/bash echo QUERY_STRING = "$QUERY_STRING" python file.py $QUERY_STRING@
Very easy CGI script.
The QUERY_STRING variable contains all the query parameters in the URL.
Example:
http://example.example/webservice/test.cgi?a=value&b=value&c=novalue
QUERY_STRING will give you:
a=value&b=value&c=novalue
The python file in the repository takes one argument, the QUERY_STRING value.