1#!/bin/sh
23
printf "Status: 500 Intentional Breakage\n"
45
printf "Content-Type: "
6charset=iso-8859-1
7case "$PATH_INFO" in
8*html*)
9printf "text/html"
10;;
11*text*)
12printf "text/plain"
13;;
14*charset*)
15printf "text/plain; charset=utf-8"
16charset=utf-8
17;;
18*utf16*)
19printf "text/plain; charset=utf-16"
20charset=utf-16
21;;
22esac
23printf "\n"
2425
printf "\n"
26printf "this is the error message\n" |
27iconv -f us-ascii -t $charset