source: trunk/gsdl/src/w32server/httpsend.h@ 2126

Last change on this file since 2126 was 611, checked in by sjboddie, 25 years ago

initial commit of windows server code

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/*
2Copyright (C) 1996
3
4This program is free software; you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation; either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18The author can be contacted via Email at [email protected]
19*/
20
21/*
22Module Name: HTTP Send
23Purpose: Functions for sending HTTP responses to 1.X requests
24Public Functions:
25 SendHTTPError
26Notes: Considering adding a version number parameter to these functions. Right
27 now the way people are implementing HTTP/1.1 is by adding the new stuff
28 to 1.0 requests. I don't know of any browsers sending 1.1 requests yet.
29*/
30
31/*
32Function Name: Send HTTP Error
33Purpose: Sends a given error message to the client with either the error file
34 as a body or a default error message body. Common and refenece log
35 entries are written, but not to the count log.
36Parameters:
37 ErrorNum - HTTP error number to send
38 ErrorTitleStr - Title of the error
39 ErrorDescStr - String describing the error
40 RequestInfo - HTTP request information (see httpreq.h)
41 RequestFields - Parsed HTTP header info (see httpreq.h)
42*/
43void SendHTTPError(int ErrorNum, char *ErrorTitleStr, char *ErrorDescStr, RequestInfoT &RequestInfo, RequestFieldsT &RequestFields);
Note: See TracBrowser for help on using the repository browser.