mercoledì 5 agosto 2015

BASH CGI HANDLE GET AND POST METHOD

PRE:
vim /etc/httpd/conf/httpd.conf
<Directory "/var/www/cgi-bin">
    AllowOverride None
    #Options None
    Options +ExecCGI -Indexes
    AddHandler cgi-script .cgi .pl .py
    Order allow,deny
    Allow from all
</Directory>

THEN:
POST-values can be read from /dev/stdin 
GET-values can be read from ${QUERY_STRING}
 SOURCE:
https://marc.waeckerlin.org/computer/blog/parsing_of_query_string_in_bash_cgi_scripts

Nessun commento:

Posta un commento