cookies.php
public function selectAsPairs($url)
    {
        $pairs = array();
        foreach ($this->cookies as $cookie) {
            if ($this->isMatch($cookie, $url->getHost(), $url->getPath(), $cookie->getName())) {
                $pairs[] = $cookie->getName() . '=' . $cookie->getValue();
            }
        }

        return $pairs;
    }
public function selectAsPairs($url)
    {
        $pairs = array();
        foreach ($this->cookies as $cookie) {
            if ($this->isMatch($cookie, $url->getHost(), $url->getPath(), $cookie->getName())) {
                $pairs[] = $cookie->getName() . '=' . $cookie->getValue();
            }
        }

        return $pairs;
    }
Uses a URL to sift relevant cookies by host and path.
Results are list of strings of form "name=value".

@param SimpleUrl $url Url to select by.

@return array Valid name and value pairs.