#!/bin/sh IFS=' ' rm /tmp/req while read a;do if [ -z `echo $a|tr -d '\r'` ]; then break else echo "$a" >> /tmp/req fi done echo HTTP/1.0 200 OK echo Connection: close echo Content-Type: text/html echo Server: myserver123 echo echo "

Hello world!

" echo "

This is a test page!

" echo "These is your request:

" #cat /tmp/req|while read a;do # echo "$a
" #done cat /tmp/req|sed -e 's|$|
|' echo '' df|sed -e 's|$|
|' echo '
'