@CHIP-RTOS C Library - Common Gateway Interface API
CGI_UrlEncode
Encodes a URL string void CGI_UrlEncode ( char *dst,
const char far *src ); Parameters
dst
- Output Parameter: Pointer to the buffer the encoded
string is to be stored in; must be large enough. The encoded string can
be up to three times as large as the original string.
src
- String that is to be encoded
Comments
- In URL-encoded strings all non-alphanumerical characters except '-', '_'
and '.' are encoded as a hexadecimal value preceded by a percent sign
(e.g. %26 for the ampersand). The space character is replaced by a plus
sign. The text "Test 123 .&%" (without the quotes) would be encoded as
"Test+123+.%26%25".
This kind of encoding is for example used to pass arguments to a CGI
page with the URL.
See Also
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 | SC2x |
-
V1.00 | V1.00 | V1.00 | V0.90 | V1.00 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|