HTML and CSS Reference
In-Depth Information
[2] It is an idiosyncrasy of NCSA httpd that no spaces are allowed in the Content - Type field that
precedes your multipart document. Some authors like to place a space after the semicolon and be-
fore the boundary keyword. Don't do this with NCSA httpd ; run the whole Content - Type together
without spaces to get the server to recognize the correct multipart content type.
#!/bin/sh
#
# Let the client know we are sending a multipart document
# with a boundary string of "NEXT"
#
echo "HTTP/1.0 200"
echo "Content-type: multipart/x-mixed-replace;boundary=NEXT"
echo ""
echo "NEXT"
while true
do
#
# Send the next part, followed by a boundary string
# Then sleep five seconds before repeating
#
echo "Content-type: text/html"
echo ""
echo <html>
echo <head>
echo "<title>Processes On This Server</title>"
echo "</head>"
echo <body>
echo "<h3> Processes On This Server</h3>"
echo "Date:"
date
echo <p>
echo <pre>
ps -el
echo "</pre>"
echo "</body>"
echo "</html>"
echo "NEXT"
sleep 5
done
 
 
Search WWH ::




Custom Search