1 | /*
|
---|
2 | Copyright (C) 1996
|
---|
3 |
|
---|
4 | This program is free software; you can redistribute it and/or modify
|
---|
5 | it under the terms of the GNU General Public License as published by
|
---|
6 | the Free Software Foundation; either version 2 of the License, or
|
---|
7 | (at your option) any later version.
|
---|
8 |
|
---|
9 | This program is distributed in the hope that it will be useful,
|
---|
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
12 | GNU General Public License for more details.
|
---|
13 |
|
---|
14 | You should have received a copy of the GNU General Public License
|
---|
15 | along with this program; if not, write to the Free Software
|
---|
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
17 |
|
---|
18 | The author can be contacted via Email at [email protected]
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | Module Name: HTTP Send
|
---|
23 | Purpose: Functions for sending HTTP responses to 1.X requests
|
---|
24 | Public Functions:
|
---|
25 | SendHTTPError
|
---|
26 | Notes: 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 | /*
|
---|
32 | Function Name: Send HTTP Error
|
---|
33 | Purpose: 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.
|
---|
36 | Parameters:
|
---|
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 | */
|
---|
43 | void SendHTTPError(int ErrorNum, char *ErrorTitleStr, char *ErrorDescStr, RequestInfoT &RequestInfo, RequestFieldsT &RequestFields);
|
---|