• About TV's server
  • New in version 3.20
  • New in version 3.10
  • About the source code
  • About protocols/plugins
  • TV's server API
  • Protocol Initialisation
  • Protocol binding
  • Protocol Listening and handling
  • Protocol data storage
  • Control panel
  • Multi column list
  • Time and date
  • Http protocol functions
  • Unimplemented and/or replaced functions
  • 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]buf [out]flags [in]
    ValueMeaning
    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