diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-07-02 23:44:48 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-07-02 23:44:48 -0400 |
commit | bdd87a4d54703b8f6e3844afd32ba88926e68d58 (patch) | |
tree | 33bc98f3e1822cbb659cd8f31f59f78fad4b9338 /examples | |
parent | move body to stdin (diff) | |
download | bashttp-bdd87a4d54703b8f6e3844afd32ba88926e68d58.tar.gz bashttp-bdd87a4d54703b8f6e3844afd32ba88926e68d58.tar.bz2 bashttp-bdd87a4d54703b8f6e3844afd32ba88926e68d58.zip |
status header
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/body.sh | 2 | ||||
-rwxr-xr-x | examples/command.sh | 3 | ||||
-rwxr-xr-x | examples/headers.sh | 4 |
3 files changed, 1 insertions, 8 deletions
diff --git a/examples/body.sh b/examples/body.sh index bf671df..afb98c2 100755 --- a/examples/body.sh +++ b/examples/body.sh @@ -6,5 +6,3 @@ printf "\n" # the body of any http request made will be stored in stdin cat - -exit 200 diff --git a/examples/command.sh b/examples/command.sh index 64e159b..5c31058 100755 --- a/examples/command.sh +++ b/examples/command.sh @@ -5,6 +5,3 @@ printf "\n" neofetch - -exit 200 - diff --git a/examples/headers.sh b/examples/headers.sh index 32c7a53..2907ab0 100755 --- a/examples/headers.sh +++ b/examples/headers.sh @@ -3,9 +3,7 @@ # print headers that will be returned printf "Content-Type: text/plain\n" printf "aaaaaaaa: AAAAAAAAAA\n" +printf "Status: 418\n" # return 418 im a teapot printf "\n" printf "joe\n" - -# return http code 200 -exit 200 |