Filename: sflhttp.h
Package: Standard Function Library (SFL)
Written: 1996/05/31 iMatix SFL project team sfl@imatix.com
Revised: 1999/06/16
Copyright: Copyright (c) 1996-2000 iMatix Corporation
Synopsis
Provides various functions that support HTTP and CGI
programming, including escaping/unescaping, and CGI data
manipulation.
List of Functions
- char * http escape
(const char *string, char *result, size_t outmax);
- char * http escape hex
(const char *string, char *result, size_t outmax);
- size_t http escape size
(const char *string);
- char * http unescape
(char *string, char *result);
- char * http unescape hex
(char *string, char *result);
- char * http query2strt
(const char *query);
- SYMTAB * http query2symb
(const char *query);
- DESCR * http query2descr
(const char *query);
- size_t http encode meta
(char *output, char **input, size_t outmax, Bool html);
- size_t encode meta char
(char *output, char meta_char, size_t outmax, Bool html);
- size_t http decode meta
(char *output, char **input, size_t outmax);
- char decode meta charn
(const char *meta_char, size_t length);
- int cgi parse query vars
(SYMTAB *symtab, const char *query, const char *prefix);
- int cgi parse file vars
(SYMTAB *symtab, FILE *file, const char *prefix, size_t size);
- DESCR * http multipart decode
(const char *mime_file, const char *store_path, const char
*local_format);
- Bool is full url
(const char *string);
- char * build full url
(const char *uri, const char *base_uri);
- char * http time str
(void);
- char * cgi get input
(int iMethod);
- char * cgi fld by name
(char *strFld, char *strIn, char *strRetBuf);
- char * cgi fld by index
(int iPos, char *strIn, char *strRetBuf, char *strFldName);
- int cgi fld len by index
(int iPos, char *strIn, int *iDataLen, int *iNameLen);
- int displayform
(char *strformfile, char *strvalues);
List of Symbol Definitions
sflhttp.h defines these symbols, possibly conditionally:
Symbol: |
Defined as: |
---|
CGIETHER
| 2
|
CGIGET
| 0
|
CGIPOST
| 1
|
SFLHTTP_INCLUDED
| TRUE
|
cgi_free_input(strBuf)
| free((strBuf))
|
decode_meta_char(string)
| decode_meta_charn (string, sizeof (string))
|
| << | <
| > | >>
|
Copyright © 1996-2000 iMatix Corporation |