Extracted from Pike v7.6 release 61 at 2005-12-30.
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