Sign in Join
FPDoc Onlineexperiment

HTTPDecode function

In unit HTTPProtocol

Decodes HTTP URL-encoded strings.

Declaration

pascal
function HTTPDecode(const AStr: string): string

Arguments

AStr

The URL-encoded string to decode.

Function result

The decoded 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.