|
|
| version 1.134, 2009/08/30 05:28:41 | version 1.141, 2010/04/19 19:35:55 |
|---|---|
| Line 16 static const char * const IDENT_COMMON_H | Line 16 static const char * const IDENT_COMMON_H |
| class Request; | class Request; |
| // defines | // defines |
| #define HTTP_USER_AGENT_UPPER "USER-AGENT" | #define HTTP_USER_AGENT "user-agent" |
| #define HTTP_CONTENT_TYPE_UPPER "CONTENT-TYPE" | |
| #define HTTP_USER_AGENT "User-Agent" | #define HTTP_STATUS "status" |
| #define HTTP_STATUS "Status" | #define HTTP_STATUS_CAPITALIZED "Status" |
| #define HTTP_CONTENT_LENGTH "Content-Length" | |
| #define HTTP_CONTENT_TYPE "Content-Type" | #define HTTP_CONTENT_LENGTH "content-length" |
| #define HTTP_CONTENT_LENGTH_CAPITALIZED "Content-Length" | |
| #define HTTP_CONTENT_TYPE "content-type" | |
| #define HTTP_CONTENT_TYPE_UPPER "CONTENT-TYPE" | |
| #define HTTP_CONTENT_TYPE_CAPITALIZED "Content-Type" | |
| #define HTTP_CONTENT_TYPE_FORM_URLENCODED "application/x-www-form-urlencoded" | #define HTTP_CONTENT_TYPE_FORM_URLENCODED "application/x-www-form-urlencoded" |
| #define HTTP_CONTENT_TYPE_MULTIPART_FORMDATA "multipart/form-data" | #define HTTP_CONTENT_TYPE_MULTIPART_FORMDATA "multipart/form-data" |
| #define HTTP_CONTENT_TYPE_MULTIPART_RELATED "multipart/related" | #define HTTP_CONTENT_TYPE_MULTIPART_RELATED "multipart/related" |
| #define HTTP_CONTENT_TYPE_MULTIPART_MIXED "multipart/mixed" | #define HTTP_CONTENT_TYPE_MULTIPART_MIXED "multipart/mixed" |
| #define CONTENT_TRANSFER_ENCODING_NAME "Content-Transfer-Encoding" | #define CONTENT_TRANSFER_ENCODING_NAME "content-transfer-encoding" |
| #define CONTENT_TRANSFER_ENCODING_CAPITALIZED "Content-Transfer-Encoding" | |
| #define CONTENT_DISPOSITION "Content-Disposition" | #define CONTENT_DISPOSITION "content-disposition" |
| #define CONTENT_DISPOSITION_LOWER "content-disposition" | #define CONTENT_DISPOSITION_CAPITALIZED "Content-Disposition" |
| #define CONTENT_DISPOSITION_ATTACHMENT "attachment" | #define CONTENT_DISPOSITION_ATTACHMENT "attachment" |
| #define CONTENT_DISPOSITION_INLINE "inline" | #define CONTENT_DISPOSITION_INLINE "inline" |
| #define CONTENT_DISPOSITION_FILENAME_NAME "filename" | #define CONTENT_DISPOSITION_FILENAME_NAME "filename" |
| const String http_content_type(HTTP_CONTENT_TYPE); | |
| const String content_transfer_encoding_name(CONTENT_TRANSFER_ENCODING_NAME); | const String content_transfer_encoding_name(CONTENT_TRANSFER_ENCODING_NAME); |
| const String content_disposition(CONTENT_DISPOSITION); | const String content_disposition(CONTENT_DISPOSITION); |
| Line 94 inline long lseek( int handle, long offs | Line 101 inline long lseek( int handle, long offs |
| #endif | #endif |
| const char* capitalize(const char* s); | |
| /** under WIN32 "t" mode fixes DOS chars OK, | /** under WIN32 "t" mode fixes DOS chars OK, |
| can't say that about other systems/ line break styles | can't say that about other systems/ line break styles |
| */ | */ |
| Line 196 bool file_write_action_under_lock( | Line 205 bool file_write_action_under_lock( |
| throws an exception in case of problems | throws an exception in case of problems |
| */ | */ |
| void file_write( | void file_write( |
| Request_charsets& charsets, | |
| const String& file_spec, | const String& file_spec, |
| const char* data, size_t size, | const char* data, |
| size_t size, | |
| bool as_text, | bool as_text, |
| bool do_append=false); | bool do_append=false, |
| Charset* asked_charset=0); | |
| /** | /** |
| delete specified file | delete specified file |
| Line 262 int getMonthDays(int year, int month); | Line 274 int getMonthDays(int year, int month); |
| int remove_crlf(char *start, char *end); | int remove_crlf(char *start, char *end); |
| #ifdef PA_SAFE_MODE | |
| void check_safe_mode(struct stat finfo, const String& file_spec, const char* fname); | void check_safe_mode(struct stat finfo, const String& file_spec, const char* fname); |
| #endif | |
| void pa_base64_decode(const char *in, size_t in_size, char*& result, size_t& result_size); | void pa_base64_decode(const char *in, size_t in_size, char*& result, size_t& result_size); |
| char* pa_base64_encode(const char *in, size_t in_size); | char* pa_base64_encode(const char *in, size_t in_size); |