#!/usr/bin/env bash cat <<'-EOT-' HTTP/1.0 200 OK Content-Type: text/html Set-Cookie: cookie1=test1.sh; path=/ Set-Cookie: cookie2=test1.sh; path=/ Hibachi/1.0 Shell Test 1

Results of Form GET request

-EOT- if [[ $PATH == '/usr/local/bin:/usr/bin:/bin' ]]; then echo "" else echo "" fi if [[ -z $ENV ]]; then echo "" else echo "" fi if [[ -z $CDPATH ]]; then echo "" else echo "" fi if [[ -z $REQUEST_METHOD ]]; then REQUEST_METHOD=''; fi if [[ $REQUEST_METHOD == 'GET' ]]; then echo "" else echo "" fi if [[ -z $QUERY_STRING ]]; then QUERY_STRING=''; fi if [[ $QUERY_STRING == 'example=GET+REQUEST+WITH+QUERY-STRING&garibaldi=peek-a-boo' ]]; then echo "" else echo "" fi echo "

Assertions

[ OK ] PATH
[ BAD ] PATH
[ OK ] ENV
[ BAD ] ENV
[ OK ] CDPATH
[ BAD ] CDPATH
[ OK ] REQUEST_METHOD
[ BAD ] REQUEST_METHOD
[ OK ] QUERY_STRING
[ BAD ] QUERY_STRING
" if [[ -z $DOCUMENT_ROOT ]]; then DOCUMENT_ROOT='.'; fi # We want to source the file, but for SC1091 the file is not available at the time of this edit. # # SC1091 (info): Not following: ./test/shell/dump.sh was not specified as input (see shellcheck -x). # https://www.shellcheck.net/wiki/SC1091 # shellcheck disable=SC1091 source "$DOCUMENT_ROOT/test/shell/dump.sh" cat <<'-EOT-'
Next Test:

Return to HIBACHI
-EOT- exit 0