bashttp/examples/headers.sh

11 lines
180 B
Bash
Executable file

#!/bin/bash
# print headers that will be returned
printf "Content-Type: text/plain\n"
printf "aaaaaaaa: AAAAAAAAAA\n"
printf "\n"
printf "joe\n"
# return http code 200
exit 200