#!/usr/bin/env bash cat <<'-EOT-' HTTP/1.0 200 OK Content-Type: text/html Hibachi/1.0 Shell Test 2

Results of Form POST 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" = 'POST' ]]; then echo "" else echo "" fi if [[ -z "$QUERY_STRING" ]]; then echo "" else echo "" fi if [[ -z $HTTP_COOKIE ]]; then HTTP_COOKIE=''; fi if [[ "$HTTP_COOKIE" == 'cookie1=test1.sh; cookie2=test1.sh' || "$HTTP_COOKIE" == 'cookie2=test1.sh; cookie1=test1.sh' ]]; 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
[ OK ] HTTP_COOKIE
[ BAD ] HTTP_COOKIE
" 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-'

Return to HIBACHI
-EOT- exit 0