Method Protocols.HTTP.http_encode_cookie()
- Method
http_encode_cookie
stringhttp_encode_cookie(stringf)- Description
This function used to claim that it encodes the specified string according to the HTTP cookie standard. If fact it does not - it applies URI-style (i.e.
%XX) encoding on some of the characters that cannot occur literally in cookie values. There exist some web servers (read Roxen and forks) that usually perform a corresponding nonstandard decoding of %-style escapes in cookie values in received requests.This function is deprecated. The function
quoted_string_encodeperforms encoding according to the standard, but it is not safe to use with arbitrary chars. Thus URI-style encoding usinguri_encodeorpercent_encodeis normally a good choice, if you can useuri_decode/percent_decodeat the decoding end.- Deprecated