Skip to content

HTTPDecode

Decodes HTTP URL-encoded strings.

Declaration

Source position: httpprotocol.pp line 157

function HTTPDecode(const AStr: string) : string;
function HTTPDecode(const AStr: string; aPlusAsSpaces: Boolean) : string;

Description

Decodes percent-encoded characters (%XX) and optionally converts plus signs to spaces. The overloaded version without aPlusAsSpaces defaults to treating plus signs as spaces.

See also

Name Description
HTTPEncode Encodes strings for HTTP URL transmission.