--- parser3/src/include/pa_common.h 2009/09/03 11:08:28 1.136 +++ parser3/src/include/pa_common.h 2009/09/10 09:39:48 1.138 @@ -8,7 +8,7 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2009/09/03 11:08:28 $"; +static const char * const IDENT_COMMON_H="$Date: 2009/09/10 09:39:48 $"; #include "pa_string.h" #include "pa_hash.h" @@ -22,6 +22,7 @@ class Request; #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_MULTIPART_FORMDATA "multipart/form-data" #define HTTP_CONTENT_TYPE_MULTIPART_RELATED "multipart/related" @@ -30,6 +31,7 @@ class Request; #define CONTENT_TRANSFER_ENCODING_NAME "content-transfer-tncoding" #define CONTENT_DISPOSITION "content-disposition" +#define CONTENT_DISPOSITION_CAPITALIZED "Content-Disposition" #define CONTENT_DISPOSITION_ATTACHMENT "attachment" #define CONTENT_DISPOSITION_INLINE "inline" #define CONTENT_DISPOSITION_FILENAME_NAME "filename" @@ -198,10 +200,13 @@ bool file_write_action_under_lock( throws an exception in case of problems */ void file_write( + Request_charsets& charsets, const String& file_spec, - const char* data, size_t size, + const char* data, + size_t size, bool as_text, - bool do_append=false); + bool do_append=false, + Charset* asked_charset=0); /** delete specified file