Extracted from Pike v7.6 release 112 at 2008-06-24.
pike.ida.liu.se
[Top]
Protocols
Protocols.HTTP

Method Protocols.HTTP.http_encode_string()


Method http_encode_string

string Protocols.HTTP.http_encode_string(string in)

Description

This protects all odd - see http_encode_query() - characters for transfer in HTTP.

Do not use this function to protect URLs, since it will protect URL characters like '/' and '?'.

Parameter in

The string to encode

Returns

The HTTP encoded string