bashttp/examples/headers.sh

12 lines
180 B
Bash
Raw Normal View History

#!/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