mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 12:43:14 +00:00
Add alias Curl::getCookie(); Update available methods in readme
This commit is contained in:
@@ -168,7 +168,9 @@ Curl::downloadComplete($fh)
|
||||
Curl::error($callback)
|
||||
Curl::exec($ch = null)
|
||||
Curl::get($url, $data = array())
|
||||
Curl::getCookie($key) {
|
||||
Curl::getOpt($option)
|
||||
Curl::getResponseCookie($key) {
|
||||
Curl::head($url, $data = array())
|
||||
Curl::headerCallback($ch, $header)
|
||||
Curl::options($url, $data = array())
|
||||
|
||||
+12
-2
@@ -544,13 +544,23 @@ class Curl
|
||||
}
|
||||
|
||||
/**
|
||||
* get Cookie of Response, if Key is set. Otherwise return NULL
|
||||
* Get cookie.
|
||||
*
|
||||
* @access public
|
||||
* @param $key
|
||||
*/
|
||||
public function getCookie($key) {
|
||||
return $this->getResponseCookie($key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get response cookie.
|
||||
*
|
||||
* @access public
|
||||
* @param $key
|
||||
*/
|
||||
public function getResponseCookie($key) {
|
||||
return (isset($this->responseCookies[$key]))?$this->responseCookies[$key]:NULL;
|
||||
return isset($this->responseCookies[$key]) ? $this->responseCookies[$key] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user