File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,9 @@ Curl::downloadComplete($fh)
168
168
Curl::error($callback)
169
169
Curl::exec($ch = null)
170
170
Curl::get($url, $data = array())
171
+ Curl::getCookie($key) {
171
172
Curl::getOpt($option)
173
+ Curl::getResponseCookie($key) {
172
174
Curl::head($url, $data = array())
173
175
Curl::headerCallback($ch, $header)
174
176
Curl::options($url, $data = array())
Original file line number Diff line number Diff line change @@ -544,13 +544,23 @@ public function setCookie($key, $value)
544
544
}
545
545
546
546
/**
547
- * get Cookie of Response, if Key is set. Otherwise return NULL
547
+ * Get cookie.
548
+ *
549
+ * @access public
550
+ * @param $key
551
+ */
552
+ public function getCookie ($ key ) {
553
+ return $ this ->getResponseCookie ($ key );
554
+ }
555
+
556
+ /**
557
+ * Get response cookie.
548
558
*
549
559
* @access public
550
560
* @param $key
551
561
*/
552
562
public function getResponseCookie ($ key ) {
553
- return ( isset ($ this ->responseCookies [$ key ]))? $ this ->responseCookies [$ key ]: NULL ;
563
+ return isset ($ this ->responseCookies [$ key ]) ? $ this ->responseCookies [$ key ] : null ;
554
564
}
555
565
556
566
/**
You can’t perform that action at this time.
0 commit comments