#include <stddef.h>
#include <http.h>
#include <string.h>
int validMethod |
( |
char * |
method, |
|
|
int |
mlen |
|
) |
| |
Determines if the passed HTTP method is allowed.
- Parameters
-
method | string associated with the HTTP method to check |
mlen | length of method string to check |
- Returns
- method constant if valid method, otherwise SYSERR
int validURI |
( |
char * |
url, |
|
|
int |
ulen |
|
) |
| |
Determines if the passed URI is a valid request.
- Parameters
-
url | string associated with the url to check |
ulen | length of the url string to check |
- Returns
- index into httpcmdtab of page to process, otherwise SYSERR
int validVersion |
( |
char * |
version, |
|
|
int |
vlen |
|
) |
| |
Determines if the passed HTTP version is allowed.
- Parameters
-
version | string associated with the HTTP version to check |
vlen | length of the version string to check |
- Returns
- version constant if valid method, otherwise SYSERR