Skip to content

HTTPEncode

Encodes strings for HTTP URL transmission.

Declaration

Source position: httpprotocol.pp line 159

function HTTPEncode(const AStr: string; aUnsafeChars: THTTPUnsafeChars; 
                   aSpacesAsPlus: Boolean) : string;
function HTTPEncode(const AStr: string) : string;

Description

Converts unsafe characters to percent-encoded format (%XX). The overloaded version allows specifying custom unsafe characters and space handling behavior.

See also

Name Description
HTTPDecode Decodes HTTP URL-encoded strings.