Encodes strings for HTTP URL transmission.
Source position: httpprotocol.pp line 159
function HTTPEncode( |
const AStr: string; |
aUnsafeChars: THTTPUnsafeChars; |
aSpacesAsPlus: Boolean |
):string; |
const AStr: string |
):string; |
AStr |
|
The string to encode. |
aUnsafeChars |
|
Additional characters to treat as unsafe. |
aSpacesAsPlus |
|
Whether to encode spaces as plus signs. |
The URL-encoded string.
AStr |
|
The string to encode. |
Converts unsafe characters to percent-encoded format (%XX). The overloaded version allows specifying custom unsafe characters and space handling behavior.
|
Decodes HTTP URL-encoded strings. |