26 #include <sys/types.h>
37 #define RESP_DATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" \
38 "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" \
39 " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" \
40 "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" \
41 "<head><title>404 - Not Found</title></head>" \
42 "<body><h1>404 - Not Found</h1></body>" \
49 HttpResponse response;
52 response =
new(HttpResponse,
"HTTP/1.1", 404,
"Not Found");
53 message = (HttpMessage)response;
56 new(HttpHeader,
CSTRA(
"Content-Type"),
CSTRA(
"text/html")));
HttpResponse httpResponse404()
#define CSTRA(val)
Const STRing Argument.
void * hashAdd(Hash, void *)