File: cgi

package info (click to toggle)
weborf 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: sh: 5,272; ansic: 3,505; python: 762; makefile: 119; xml: 44
file content (11 lines) | stat: -rwxr-xr-x 384 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
. testsuite/functions.sh

PORT=12350

run_weborf -b site1 -p $PORT --yesexec --cgi .py,/usr/bin/python3

curl -vs http://localhost:$PORT/cgi.py
curl -vs -H 'If-None-Match: "1545650587"' http://localhost:$PORT/cgi.py | grep 1545650587
curl -vs http://localhost:$PORT/cgi.py\?ciccio | grep ciccio
curl -vs --data "lallallero" http://localhost:$PORT/cgi.py | grep lallallero