line
This commit is contained in:
@@ -15,7 +15,7 @@ class Unirest
|
|||||||
{
|
{
|
||||||
return Unirest::request(HttpMethod::GET, $url, NULL, $headers);
|
return Unirest::request(HttpMethod::GET, $url, NULL, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send POST request to a URL
|
* Send POST request to a URL
|
||||||
* @param string $url URL to send the POST request to
|
* @param string $url URL to send the POST request to
|
||||||
@@ -82,7 +82,7 @@ class Unirest
|
|||||||
}
|
}
|
||||||
$lowercaseHeaders[] = "user-agent: unirest-php/1.0";
|
$lowercaseHeaders[] = "user-agent: unirest-php/1.0";
|
||||||
$lowercaseHeaders[] = "expect:";
|
$lowercaseHeaders[] = "expect:";
|
||||||
|
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
if ($httpMethod != HttpMethod::GET) {
|
if ($httpMethod != HttpMethod::GET) {
|
||||||
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, $httpMethod);
|
curl_setopt ($ch, CURLOPT_CUSTOMREQUEST, $httpMethod);
|
||||||
|
|||||||
Reference in New Issue
Block a user