Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -269,11 +269,16 @@ class _Curl
|
||||
* @return \IPS\Http\Response
|
||||
* @throws \IPS\Http\Request\CurlException
|
||||
*/
|
||||
public function get()
|
||||
public function get( $data=NULL )
|
||||
{
|
||||
/* Specify that this is a GET request */
|
||||
curl_setopt( $this->curl, CURLOPT_HTTPGET, TRUE );
|
||||
$this->dataForLog = NULL;
|
||||
|
||||
if ( $data )
|
||||
{
|
||||
curl_setopt( $this->curl, CURLOPT_POSTFIELDS, $data );
|
||||
}
|
||||
|
||||
return $this->_executeAndFollowRedirects( 'GET', NULL );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user