Configure CGI script » History » Version 2
« Previous -
Version 2/6
(diff) -
Next » -
Current version
Rob Tjalma, 08/26/2016 11:45 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?q=value&callback=function
QUERY_STRING will give you:
q=value&callback=function
The python file in the repository takes one argument, the QUERY_STRING value.