Unit 'httpprotocol' Package
[Overview][Constants][Types][Procedures and functions][Index] [#fcl]

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;

Arguments

AStr

  

The URL-encoded string to decode.

Function result

The decoded string.

Arguments

AStr

  

The URL-encoded string to decode.

aPlusAsSpaces

  

Whether to convert plus signs to spaces.

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

HTTPEncode

  

Encodes strings for HTTP URL transmission.


Documentation generated on: Dec 15 2025