Edit File by line
/home/barbar84/public_h.../wp-inclu.../Requests
File: Cookie.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Cookie storage object
[2] Fix | Delete
*
[3] Fix | Delete
* @package Requests
[4] Fix | Delete
* @subpackage Cookies
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
/**
[8] Fix | Delete
* Cookie storage object
[9] Fix | Delete
*
[10] Fix | Delete
* @package Requests
[11] Fix | Delete
* @subpackage Cookies
[12] Fix | Delete
*/
[13] Fix | Delete
class Requests_Cookie {
[14] Fix | Delete
/**
[15] Fix | Delete
* Cookie name.
[16] Fix | Delete
*
[17] Fix | Delete
* @var string
[18] Fix | Delete
*/
[19] Fix | Delete
public $name;
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Cookie value.
[23] Fix | Delete
*
[24] Fix | Delete
* @var string
[25] Fix | Delete
*/
[26] Fix | Delete
public $value;
[27] Fix | Delete
[28] Fix | Delete
/**
[29] Fix | Delete
* Cookie attributes
[30] Fix | Delete
*
[31] Fix | Delete
* Valid keys are (currently) path, domain, expires, max-age, secure and
[32] Fix | Delete
* httponly.
[33] Fix | Delete
*
[34] Fix | Delete
* @var Requests_Utility_CaseInsensitiveDictionary|array Array-like object
[35] Fix | Delete
*/
[36] Fix | Delete
public $attributes = array();
[37] Fix | Delete
[38] Fix | Delete
/**
[39] Fix | Delete
* Cookie flags
[40] Fix | Delete
*
[41] Fix | Delete
* Valid keys are (currently) creation, last-access, persistent and
[42] Fix | Delete
* host-only.
[43] Fix | Delete
*
[44] Fix | Delete
* @var array
[45] Fix | Delete
*/
[46] Fix | Delete
public $flags = array();
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* Reference time for relative calculations
[50] Fix | Delete
*
[51] Fix | Delete
* This is used in place of `time()` when calculating Max-Age expiration and
[52] Fix | Delete
* checking time validity.
[53] Fix | Delete
*
[54] Fix | Delete
* @var int
[55] Fix | Delete
*/
[56] Fix | Delete
public $reference_time = 0;
[57] Fix | Delete
[58] Fix | Delete
/**
[59] Fix | Delete
* Create a new cookie object
[60] Fix | Delete
*
[61] Fix | Delete
* @param string $name
[62] Fix | Delete
* @param string $value
[63] Fix | Delete
* @param array|Requests_Utility_CaseInsensitiveDictionary $attributes Associative array of attribute data
[64] Fix | Delete
*/
[65] Fix | Delete
public function __construct($name, $value, $attributes = array(), $flags = array(), $reference_time = null) {
[66] Fix | Delete
$this->name = $name;
[67] Fix | Delete
$this->value = $value;
[68] Fix | Delete
$this->attributes = $attributes;
[69] Fix | Delete
$default_flags = array(
[70] Fix | Delete
'creation' => time(),
[71] Fix | Delete
'last-access' => time(),
[72] Fix | Delete
'persistent' => false,
[73] Fix | Delete
'host-only' => true,
[74] Fix | Delete
);
[75] Fix | Delete
$this->flags = array_merge($default_flags, $flags);
[76] Fix | Delete
[77] Fix | Delete
$this->reference_time = time();
[78] Fix | Delete
if ($reference_time !== null) {
[79] Fix | Delete
$this->reference_time = $reference_time;
[80] Fix | Delete
}
[81] Fix | Delete
[82] Fix | Delete
$this->normalize();
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* Check if a cookie is expired.
[87] Fix | Delete
*
[88] Fix | Delete
* Checks the age against $this->reference_time to determine if the cookie
[89] Fix | Delete
* is expired.
[90] Fix | Delete
*
[91] Fix | Delete
* @return boolean True if expired, false if time is valid.
[92] Fix | Delete
*/
[93] Fix | Delete
public function is_expired() {
[94] Fix | Delete
// RFC6265, s. 4.1.2.2:
[95] Fix | Delete
// If a cookie has both the Max-Age and the Expires attribute, the Max-
[96] Fix | Delete
// Age attribute has precedence and controls the expiration date of the
[97] Fix | Delete
// cookie.
[98] Fix | Delete
if (isset($this->attributes['max-age'])) {
[99] Fix | Delete
$max_age = $this->attributes['max-age'];
[100] Fix | Delete
return $max_age < $this->reference_time;
[101] Fix | Delete
}
[102] Fix | Delete
[103] Fix | Delete
if (isset($this->attributes['expires'])) {
[104] Fix | Delete
$expires = $this->attributes['expires'];
[105] Fix | Delete
return $expires < $this->reference_time;
[106] Fix | Delete
}
[107] Fix | Delete
[108] Fix | Delete
return false;
[109] Fix | Delete
}
[110] Fix | Delete
[111] Fix | Delete
/**
[112] Fix | Delete
* Check if a cookie is valid for a given URI
[113] Fix | Delete
*
[114] Fix | Delete
* @param Requests_IRI $uri URI to check
[115] Fix | Delete
* @return boolean Whether the cookie is valid for the given URI
[116] Fix | Delete
*/
[117] Fix | Delete
public function uri_matches(Requests_IRI $uri) {
[118] Fix | Delete
if (!$this->domain_matches($uri->host)) {
[119] Fix | Delete
return false;
[120] Fix | Delete
}
[121] Fix | Delete
[122] Fix | Delete
if (!$this->path_matches($uri->path)) {
[123] Fix | Delete
return false;
[124] Fix | Delete
}
[125] Fix | Delete
[126] Fix | Delete
return empty($this->attributes['secure']) || $uri->scheme === 'https';
[127] Fix | Delete
}
[128] Fix | Delete
[129] Fix | Delete
/**
[130] Fix | Delete
* Check if a cookie is valid for a given domain
[131] Fix | Delete
*
[132] Fix | Delete
* @param string $string Domain to check
[133] Fix | Delete
* @return boolean Whether the cookie is valid for the given domain
[134] Fix | Delete
*/
[135] Fix | Delete
public function domain_matches($string) {
[136] Fix | Delete
if (!isset($this->attributes['domain'])) {
[137] Fix | Delete
// Cookies created manually; cookies created by Requests will set
[138] Fix | Delete
// the domain to the requested domain
[139] Fix | Delete
return true;
[140] Fix | Delete
}
[141] Fix | Delete
[142] Fix | Delete
$domain_string = $this->attributes['domain'];
[143] Fix | Delete
if ($domain_string === $string) {
[144] Fix | Delete
// The domain string and the string are identical.
[145] Fix | Delete
return true;
[146] Fix | Delete
}
[147] Fix | Delete
[148] Fix | Delete
// If the cookie is marked as host-only and we don't have an exact
[149] Fix | Delete
// match, reject the cookie
[150] Fix | Delete
if ($this->flags['host-only'] === true) {
[151] Fix | Delete
return false;
[152] Fix | Delete
}
[153] Fix | Delete
[154] Fix | Delete
if (strlen($string) <= strlen($domain_string)) {
[155] Fix | Delete
// For obvious reasons, the string cannot be a suffix if the domain
[156] Fix | Delete
// is shorter than the domain string
[157] Fix | Delete
return false;
[158] Fix | Delete
}
[159] Fix | Delete
[160] Fix | Delete
if (substr($string, -1 * strlen($domain_string)) !== $domain_string) {
[161] Fix | Delete
// The domain string should be a suffix of the string.
[162] Fix | Delete
return false;
[163] Fix | Delete
}
[164] Fix | Delete
[165] Fix | Delete
$prefix = substr($string, 0, strlen($string) - strlen($domain_string));
[166] Fix | Delete
if (substr($prefix, -1) !== '.') {
[167] Fix | Delete
// The last character of the string that is not included in the
[168] Fix | Delete
// domain string should be a %x2E (".") character.
[169] Fix | Delete
return false;
[170] Fix | Delete
}
[171] Fix | Delete
[172] Fix | Delete
// The string should be a host name (i.e., not an IP address).
[173] Fix | Delete
return !preg_match('#^(.+\.)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$#', $string);
[174] Fix | Delete
}
[175] Fix | Delete
[176] Fix | Delete
/**
[177] Fix | Delete
* Check if a cookie is valid for a given path
[178] Fix | Delete
*
[179] Fix | Delete
* From the path-match check in RFC 6265 section 5.1.4
[180] Fix | Delete
*
[181] Fix | Delete
* @param string $request_path Path to check
[182] Fix | Delete
* @return boolean Whether the cookie is valid for the given path
[183] Fix | Delete
*/
[184] Fix | Delete
public function path_matches($request_path) {
[185] Fix | Delete
if (empty($request_path)) {
[186] Fix | Delete
// Normalize empty path to root
[187] Fix | Delete
$request_path = '/';
[188] Fix | Delete
}
[189] Fix | Delete
[190] Fix | Delete
if (!isset($this->attributes['path'])) {
[191] Fix | Delete
// Cookies created manually; cookies created by Requests will set
[192] Fix | Delete
// the path to the requested path
[193] Fix | Delete
return true;
[194] Fix | Delete
}
[195] Fix | Delete
[196] Fix | Delete
$cookie_path = $this->attributes['path'];
[197] Fix | Delete
[198] Fix | Delete
if ($cookie_path === $request_path) {
[199] Fix | Delete
// The cookie-path and the request-path are identical.
[200] Fix | Delete
return true;
[201] Fix | Delete
}
[202] Fix | Delete
[203] Fix | Delete
if (strlen($request_path) > strlen($cookie_path) && substr($request_path, 0, strlen($cookie_path)) === $cookie_path) {
[204] Fix | Delete
if (substr($cookie_path, -1) === '/') {
[205] Fix | Delete
// The cookie-path is a prefix of the request-path, and the last
[206] Fix | Delete
// character of the cookie-path is %x2F ("/").
[207] Fix | Delete
return true;
[208] Fix | Delete
}
[209] Fix | Delete
[210] Fix | Delete
if (substr($request_path, strlen($cookie_path), 1) === '/') {
[211] Fix | Delete
// The cookie-path is a prefix of the request-path, and the
[212] Fix | Delete
// first character of the request-path that is not included in
[213] Fix | Delete
// the cookie-path is a %x2F ("/") character.
[214] Fix | Delete
return true;
[215] Fix | Delete
}
[216] Fix | Delete
}
[217] Fix | Delete
[218] Fix | Delete
return false;
[219] Fix | Delete
}
[220] Fix | Delete
[221] Fix | Delete
/**
[222] Fix | Delete
* Normalize cookie and attributes
[223] Fix | Delete
*
[224] Fix | Delete
* @return boolean Whether the cookie was successfully normalized
[225] Fix | Delete
*/
[226] Fix | Delete
public function normalize() {
[227] Fix | Delete
foreach ($this->attributes as $key => $value) {
[228] Fix | Delete
$orig_value = $value;
[229] Fix | Delete
$value = $this->normalize_attribute($key, $value);
[230] Fix | Delete
if ($value === null) {
[231] Fix | Delete
unset($this->attributes[$key]);
[232] Fix | Delete
continue;
[233] Fix | Delete
}
[234] Fix | Delete
[235] Fix | Delete
if ($value !== $orig_value) {
[236] Fix | Delete
$this->attributes[$key] = $value;
[237] Fix | Delete
}
[238] Fix | Delete
}
[239] Fix | Delete
[240] Fix | Delete
return true;
[241] Fix | Delete
}
[242] Fix | Delete
[243] Fix | Delete
/**
[244] Fix | Delete
* Parse an individual cookie attribute
[245] Fix | Delete
*
[246] Fix | Delete
* Handles parsing individual attributes from the cookie values.
[247] Fix | Delete
*
[248] Fix | Delete
* @param string $name Attribute name
[249] Fix | Delete
* @param string|boolean $value Attribute value (string value, or true if empty/flag)
[250] Fix | Delete
* @return mixed Value if available, or null if the attribute value is invalid (and should be skipped)
[251] Fix | Delete
*/
[252] Fix | Delete
protected function normalize_attribute($name, $value) {
[253] Fix | Delete
switch (strtolower($name)) {
[254] Fix | Delete
case 'expires':
[255] Fix | Delete
// Expiration parsing, as per RFC 6265 section 5.2.1
[256] Fix | Delete
if (is_int($value)) {
[257] Fix | Delete
return $value;
[258] Fix | Delete
}
[259] Fix | Delete
[260] Fix | Delete
$expiry_time = strtotime($value);
[261] Fix | Delete
if ($expiry_time === false) {
[262] Fix | Delete
return null;
[263] Fix | Delete
}
[264] Fix | Delete
[265] Fix | Delete
return $expiry_time;
[266] Fix | Delete
[267] Fix | Delete
case 'max-age':
[268] Fix | Delete
// Expiration parsing, as per RFC 6265 section 5.2.2
[269] Fix | Delete
if (is_int($value)) {
[270] Fix | Delete
return $value;
[271] Fix | Delete
}
[272] Fix | Delete
[273] Fix | Delete
// Check that we have a valid age
[274] Fix | Delete
if (!preg_match('/^-?\d+$/', $value)) {
[275] Fix | Delete
return null;
[276] Fix | Delete
}
[277] Fix | Delete
[278] Fix | Delete
$delta_seconds = (int) $value;
[279] Fix | Delete
if ($delta_seconds <= 0) {
[280] Fix | Delete
$expiry_time = 0;
[281] Fix | Delete
}
[282] Fix | Delete
else {
[283] Fix | Delete
$expiry_time = $this->reference_time + $delta_seconds;
[284] Fix | Delete
}
[285] Fix | Delete
[286] Fix | Delete
return $expiry_time;
[287] Fix | Delete
[288] Fix | Delete
case 'domain':
[289] Fix | Delete
// Domains are not required as per RFC 6265 section 5.2.3
[290] Fix | Delete
if (empty($value)) {
[291] Fix | Delete
return null;
[292] Fix | Delete
}
[293] Fix | Delete
[294] Fix | Delete
// Domain normalization, as per RFC 6265 section 5.2.3
[295] Fix | Delete
if ($value[0] === '.') {
[296] Fix | Delete
$value = substr($value, 1);
[297] Fix | Delete
}
[298] Fix | Delete
[299] Fix | Delete
return $value;
[300] Fix | Delete
[301] Fix | Delete
default:
[302] Fix | Delete
return $value;
[303] Fix | Delete
}
[304] Fix | Delete
}
[305] Fix | Delete
[306] Fix | Delete
/**
[307] Fix | Delete
* Format a cookie for a Cookie header
[308] Fix | Delete
*
[309] Fix | Delete
* This is used when sending cookies to a server.
[310] Fix | Delete
*
[311] Fix | Delete
* @return string Cookie formatted for Cookie header
[312] Fix | Delete
*/
[313] Fix | Delete
public function format_for_header() {
[314] Fix | Delete
return sprintf('%s=%s', $this->name, $this->value);
[315] Fix | Delete
}
[316] Fix | Delete
[317] Fix | Delete
/**
[318] Fix | Delete
* Format a cookie for a Cookie header
[319] Fix | Delete
*
[320] Fix | Delete
* @codeCoverageIgnore
[321] Fix | Delete
* @deprecated Use {@see Requests_Cookie::format_for_header}
[322] Fix | Delete
* @return string
[323] Fix | Delete
*/
[324] Fix | Delete
public function formatForHeader() {
[325] Fix | Delete
return $this->format_for_header();
[326] Fix | Delete
}
[327] Fix | Delete
[328] Fix | Delete
/**
[329] Fix | Delete
* Format a cookie for a Set-Cookie header
[330] Fix | Delete
*
[331] Fix | Delete
* This is used when sending cookies to clients. This isn't really
[332] Fix | Delete
* applicable to client-side usage, but might be handy for debugging.
[333] Fix | Delete
*
[334] Fix | Delete
* @return string Cookie formatted for Set-Cookie header
[335] Fix | Delete
*/
[336] Fix | Delete
public function format_for_set_cookie() {
[337] Fix | Delete
$header_value = $this->format_for_header();
[338] Fix | Delete
if (!empty($this->attributes)) {
[339] Fix | Delete
$parts = array();
[340] Fix | Delete
foreach ($this->attributes as $key => $value) {
[341] Fix | Delete
// Ignore non-associative attributes
[342] Fix | Delete
if (is_numeric($key)) {
[343] Fix | Delete
$parts[] = $value;
[344] Fix | Delete
}
[345] Fix | Delete
else {
[346] Fix | Delete
$parts[] = sprintf('%s=%s', $key, $value);
[347] Fix | Delete
}
[348] Fix | Delete
}
[349] Fix | Delete
[350] Fix | Delete
$header_value .= '; ' . implode('; ', $parts);
[351] Fix | Delete
}
[352] Fix | Delete
return $header_value;
[353] Fix | Delete
}
[354] Fix | Delete
[355] Fix | Delete
/**
[356] Fix | Delete
* Format a cookie for a Set-Cookie header
[357] Fix | Delete
*
[358] Fix | Delete
* @codeCoverageIgnore
[359] Fix | Delete
* @deprecated Use {@see Requests_Cookie::format_for_set_cookie}
[360] Fix | Delete
* @return string
[361] Fix | Delete
*/
[362] Fix | Delete
public function formatForSetCookie() {
[363] Fix | Delete
return $this->format_for_set_cookie();
[364] Fix | Delete
}
[365] Fix | Delete
[366] Fix | Delete
/**
[367] Fix | Delete
* Get the cookie value
[368] Fix | Delete
*
[369] Fix | Delete
* Attributes and other data can be accessed via methods.
[370] Fix | Delete
*/
[371] Fix | Delete
public function __toString() {
[372] Fix | Delete
return $this->value;
[373] Fix | Delete
}
[374] Fix | Delete
[375] Fix | Delete
/**
[376] Fix | Delete
* Parse a cookie string into a cookie object
[377] Fix | Delete
*
[378] Fix | Delete
* Based on Mozilla's parsing code in Firefox and related projects, which
[379] Fix | Delete
* is an intentional deviation from RFC 2109 and RFC 2616. RFC 6265
[380] Fix | Delete
* specifies some of this handling, but not in a thorough manner.
[381] Fix | Delete
*
[382] Fix | Delete
* @param string Cookie header value (from a Set-Cookie header)
[383] Fix | Delete
* @return Requests_Cookie Parsed cookie object
[384] Fix | Delete
*/
[385] Fix | Delete
public static function parse($string, $name = '', $reference_time = null) {
[386] Fix | Delete
$parts = explode(';', $string);
[387] Fix | Delete
$kvparts = array_shift($parts);
[388] Fix | Delete
[389] Fix | Delete
if (!empty($name)) {
[390] Fix | Delete
$value = $string;
[391] Fix | Delete
}
[392] Fix | Delete
elseif (strpos($kvparts, '=') === false) {
[393] Fix | Delete
// Some sites might only have a value without the equals separator.
[394] Fix | Delete
// Deviate from RFC 6265 and pretend it was actually a blank name
[395] Fix | Delete
// (`=foo`)
[396] Fix | Delete
//
[397] Fix | Delete
// https://bugzilla.mozilla.org/show_bug.cgi?id=169091
[398] Fix | Delete
$name = '';
[399] Fix | Delete
$value = $kvparts;
[400] Fix | Delete
}
[401] Fix | Delete
else {
[402] Fix | Delete
list($name, $value) = explode('=', $kvparts, 2);
[403] Fix | Delete
}
[404] Fix | Delete
$name = trim($name);
[405] Fix | Delete
$value = trim($value);
[406] Fix | Delete
[407] Fix | Delete
// Attribute key are handled case-insensitively
[408] Fix | Delete
$attributes = new Requests_Utility_CaseInsensitiveDictionary();
[409] Fix | Delete
[410] Fix | Delete
if (!empty($parts)) {
[411] Fix | Delete
foreach ($parts as $part) {
[412] Fix | Delete
if (strpos($part, '=') === false) {
[413] Fix | Delete
$part_key = $part;
[414] Fix | Delete
$part_value = true;
[415] Fix | Delete
}
[416] Fix | Delete
else {
[417] Fix | Delete
list($part_key, $part_value) = explode('=', $part, 2);
[418] Fix | Delete
$part_value = trim($part_value);
[419] Fix | Delete
}
[420] Fix | Delete
[421] Fix | Delete
$part_key = trim($part_key);
[422] Fix | Delete
$attributes[$part_key] = $part_value;
[423] Fix | Delete
}
[424] Fix | Delete
}
[425] Fix | Delete
[426] Fix | Delete
return new Requests_Cookie($name, $value, $attributes, array(), $reference_time);
[427] Fix | Delete
}
[428] Fix | Delete
[429] Fix | Delete
/**
[430] Fix | Delete
* Parse all Set-Cookie headers from request headers
[431] Fix | Delete
*
[432] Fix | Delete
* @param Requests_Response_Headers $headers Headers to parse from
[433] Fix | Delete
* @param Requests_IRI|null $origin URI for comparing cookie origins
[434] Fix | Delete
* @param int|null $time Reference time for expiration calculation
[435] Fix | Delete
* @return array
[436] Fix | Delete
*/
[437] Fix | Delete
public static function parse_from_headers(Requests_Response_Headers $headers, Requests_IRI $origin = null, $time = null) {
[438] Fix | Delete
$cookie_headers = $headers->getValues('Set-Cookie');
[439] Fix | Delete
if (empty($cookie_headers)) {
[440] Fix | Delete
return array();
[441] Fix | Delete
}
[442] Fix | Delete
[443] Fix | Delete
$cookies = array();
[444] Fix | Delete
foreach ($cookie_headers as $header) {
[445] Fix | Delete
$parsed = self::parse($header, '', $time);
[446] Fix | Delete
[447] Fix | Delete
// Default domain/path attributes
[448] Fix | Delete
if (empty($parsed->attributes['domain']) && !empty($origin)) {
[449] Fix | Delete
$parsed->attributes['domain'] = $origin->host;
[450] Fix | Delete
$parsed->flags['host-only'] = true;
[451] Fix | Delete
}
[452] Fix | Delete
else {
[453] Fix | Delete
$parsed->flags['host-only'] = false;
[454] Fix | Delete
}
[455] Fix | Delete
[456] Fix | Delete
$path_is_valid = (!empty($parsed->attributes['path']) && $parsed->attributes['path'][0] === '/');
[457] Fix | Delete
if (!$path_is_valid && !empty($origin)) {
[458] Fix | Delete
$path = $origin->path;
[459] Fix | Delete
[460] Fix | Delete
// Default path normalization as per RFC 6265 section 5.1.4
[461] Fix | Delete
if (substr($path, 0, 1) !== '/') {
[462] Fix | Delete
// If the uri-path is empty or if the first character of
[463] Fix | Delete
// the uri-path is not a %x2F ("/") character, output
[464] Fix | Delete
// %x2F ("/") and skip the remaining steps.
[465] Fix | Delete
$path = '/';
[466] Fix | Delete
}
[467] Fix | Delete
elseif (substr_count($path, '/') === 1) {
[468] Fix | Delete
// If the uri-path contains no more than one %x2F ("/")
[469] Fix | Delete
// character, output %x2F ("/") and skip the remaining
[470] Fix | Delete
// step.
[471] Fix | Delete
$path = '/';
[472] Fix | Delete
}
[473] Fix | Delete
else {
[474] Fix | Delete
// Output the characters of the uri-path from the first
[475] Fix | Delete
// character up to, but not including, the right-most
[476] Fix | Delete
// %x2F ("/").
[477] Fix | Delete
$path = substr($path, 0, strrpos($path, '/'));
[478] Fix | Delete
}
[479] Fix | Delete
$parsed->attributes['path'] = $path;
[480] Fix | Delete
}
[481] Fix | Delete
[482] Fix | Delete
// Reject invalid cookie domains
[483] Fix | Delete
if (!empty($origin) && !$parsed->domain_matches($origin->host)) {
[484] Fix | Delete
continue;
[485] Fix | Delete
}
[486] Fix | Delete
[487] Fix | Delete
$cookies[$parsed->name] = $parsed;
[488] Fix | Delete
}
[489] Fix | Delete
[490] Fix | Delete
return $cookies;
[491] Fix | Delete
}
[492] Fix | Delete
[493] Fix | Delete
/**
[494] Fix | Delete
* Parse all Set-Cookie headers from request headers
[495] Fix | Delete
*
[496] Fix | Delete
* @codeCoverageIgnore
[497] Fix | Delete
* @deprecated Use {@see Requests_Cookie::parse_from_headers}
[498] Fix | Delete
* @return string
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function