/**********************************************************************/ /** Microsoft Windows NT **/ /** Copyright(c) Microsoft Corp., 1994 **/ /**********************************************************************/ /* smalprox.cxx This module contains the small proxy common code FILE HISTORY: Johnl 04-Apr-1995 Created */ #include #include #include #include #include #include // // Private Manifests // // // HTTP Headers for HTML and plain text return data // // #define SMALLPROX_HTTP_HEADER "HTTP/1.0 200 OK\r\n" \ "Content-Type: text/html\r\n" \ "Server: Mini-Proxy/1.0\r\n" \ "\r\n" #define SIZEOF_HTTP_HEADER sizeof( SMALLPROX_HTTP_HEADER ) - sizeof(CHAR) // // The first part of the HTML document, %s is the URL // #define HTML_DIR_HEADER "%s - %s" \ "

%s - %s

" \ "
\r\n\r\n
"

//
//  The footer for an HTML document
//

#define HORZ_RULE                   "

" // // These constants define the field width for the directory listing // #define PAD_LONG_DATE 29 #define PAD_SHORT_DATE 10 #define PAD_TIME 8 #define PAD_FILESIZE 12 // // Space between columns // #define COL_SPACE " " #define PAD_COL_SPACING (sizeof(COL_SPACE) - 1) // // A wsprintf format string that prints the file format like: // //