EscapeValue function
The EscapeValue function will escape special HTTP-header characters and URL characters as %XX.Syntax
int __stdcall EscapeValue(
__in char *inputString,
__out char *buf,
__in int flags
);
Parameters
inputString [in] A pointer to a null-terminated string containing the string to be escaped.
buf [out] A pointer to the buffer to receive the escaped string. This paramter can be zero.
flags [in] This parameter can be zero or a combination of the following values.
Value | Meaning |
REPLACE_SPACE_WITH_ADD_SIGN 0x1 | The space will not be escaped as '%20', but it will be esacped as '+'.
|
SKIP_SPECIAL_CHARS 0x2 | Instead of escaping the special characters it will ignore (by not sending) those characters.
|
DONT_REPLACE_PATH_CHARACTERS 0x4 | The characters $&+,/:=@ will not be escaped.
|
Return value
The function returns the length, in bytes, that is copied the buffer pointed to by the
buf parameter. If
buf parameter is zero, it will return the length needed to receive the data.
Remarks
This function escapes in the same way as the
EscapeAndSendValue function does.
Requirements
Should be exported by | -
|
Minimum supported API | 1.02
|
Header | tvsserver_base.h
|
Library(x86) | tvs_server_http_protocol_x86.lib
|
Library(x64) | tvs_server_http_protocol_x64.lib
|
DLL(x86) | tvs_server_http_protocol_x86.DLL
|
DLL(x64) | tvs_server_http_protocol_x64.DLL
|