Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/flow-flo.../libs/mashape/unirest-...
File: README.md
# Unirest for PHP [![Build Status][travis-image]][travis-url] [![version][packagist-version]][packagist-url]
[0] Fix | Delete
[1] Fix | Delete
[![Downloads][packagist-downloads]][packagist-url]
[2] Fix | Delete
[![Code Climate][codeclimate-quality]][codeclimate-url]
[3] Fix | Delete
[![Coverage Status][codeclimate-coverage]][codeclimate-url]
[4] Fix | Delete
[![Dependencies][versioneye-image]][versioneye-url]
[5] Fix | Delete
[![Gitter][gitter-image]][gitter-url]
[6] Fix | Delete
[![License][packagist-license]][license-url]
[7] Fix | Delete
[8] Fix | Delete
![][unirest-logo]
[9] Fix | Delete
[10] Fix | Delete
[11] Fix | Delete
[Unirest](http://unirest.io) is a set of lightweight HTTP libraries available in multiple languages, built and maintained by [Mashape](https://github.com/Mashape), who also maintain the open-source API Gateway [Kong](https://github.com/Mashape/kong).
[12] Fix | Delete
[13] Fix | Delete
[14] Fix | Delete
## Features
[15] Fix | Delete
[16] Fix | Delete
* Utility methods to call `GET`, `HEAD`, `POST`, `PUT`, `DELETE`, `CONNECT`, `OPTIONS`, `TRACE`, `PATCH` requests
[17] Fix | Delete
* Supports form parameters, file uploads and custom body entities
[18] Fix | Delete
* Supports gzip
[19] Fix | Delete
* Supports Basic, Digest, Negotiate, NTLM Authentication natively
[20] Fix | Delete
* Customizable timeout
[21] Fix | Delete
* Customizable default headers for every request (DRY)
[22] Fix | Delete
* Automatic JSON parsing into a native object for JSON responses
[23] Fix | Delete
[24] Fix | Delete
## Requirements
[25] Fix | Delete
[26] Fix | Delete
- [cURL](http://php.net/manual/en/book.curl.php)
[27] Fix | Delete
- PHP 5.4+
[28] Fix | Delete
[29] Fix | Delete
## Installation
[30] Fix | Delete
[31] Fix | Delete
### Using [Composer](https://getcomposer.org)
[32] Fix | Delete
[33] Fix | Delete
To install unirest-php with Composer, just add the following to your `composer.json` file:
[34] Fix | Delete
[35] Fix | Delete
```json
[36] Fix | Delete
{
[37] Fix | Delete
"require-dev": {
[38] Fix | Delete
"mashape/unirest-php": "3.*"
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
```
[42] Fix | Delete
[43] Fix | Delete
or by running the following command:
[44] Fix | Delete
[45] Fix | Delete
```shell
[46] Fix | Delete
composer require mashape/unirest-php
[47] Fix | Delete
```
[48] Fix | Delete
[49] Fix | Delete
This will get you the latest version of the reporter and install it. If you do want the master, untagged, version you may use the command below:
[50] Fix | Delete
[51] Fix | Delete
```shell
[52] Fix | Delete
composer require mashape/php-test-reporter dev-master
[53] Fix | Delete
```
[54] Fix | Delete
[55] Fix | Delete
Composer installs autoloader at `./vendor/autoloader.php`. to include the library in your script, add:
[56] Fix | Delete
[57] Fix | Delete
```php
[58] Fix | Delete
require_once 'vendor/autoload.php';
[59] Fix | Delete
```
[60] Fix | Delete
[61] Fix | Delete
If you use Symfony2, autoloader has to be detected automatically.
[62] Fix | Delete
[63] Fix | Delete
*You can see this library on [Packagist](https://packagist.org/packages/mashape/unirest-php).*
[64] Fix | Delete
[65] Fix | Delete
### Install from source
[66] Fix | Delete
[67] Fix | Delete
Download the PHP library from Github, then include `Unirest.php` in your script:
[68] Fix | Delete
[69] Fix | Delete
```shell
[70] Fix | Delete
git clone git@github.com:Mashape/unirest-php.git
[71] Fix | Delete
```
[72] Fix | Delete
[73] Fix | Delete
```php
[74] Fix | Delete
require_once '/path/to/unirest-php/src/Unirest.php';
[75] Fix | Delete
```
[76] Fix | Delete
[77] Fix | Delete
## Usage
[78] Fix | Delete
[79] Fix | Delete
### Creating a Request
[80] Fix | Delete
[81] Fix | Delete
So you're probably wondering how using Unirest makes creating requests in PHP easier, let's look at a working example:
[82] Fix | Delete
[83] Fix | Delete
```php
[84] Fix | Delete
$headers = array('Accept' => 'application/json');
[85] Fix | Delete
$query = array('foo' => 'hello', 'bar' => 'world');
[86] Fix | Delete
[87] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $query);
[88] Fix | Delete
[89] Fix | Delete
$response->code; // HTTP Status code
[90] Fix | Delete
$response->headers; // Headers
[91] Fix | Delete
$response->body; // Parsed body
[92] Fix | Delete
$response->raw_body; // Unparsed body
[93] Fix | Delete
```
[94] Fix | Delete
[95] Fix | Delete
### JSON Requests *(`application/json`)*
[96] Fix | Delete
[97] Fix | Delete
A JSON Request can be constructed using the `Unirest\Request\Body::Json` helper:
[98] Fix | Delete
[99] Fix | Delete
```php
[100] Fix | Delete
$headers = array('Accept' => 'application/json');
[101] Fix | Delete
$data = array('name' => 'ahmad', 'company' => 'mashape');
[102] Fix | Delete
[103] Fix | Delete
$body = Unirest\Request\Body::json($data);
[104] Fix | Delete
[105] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $body);
[106] Fix | Delete
```
[107] Fix | Delete
[108] Fix | Delete
**Notes:**
[109] Fix | Delete
- `Content-Type` headers will be automatically set to `application/json`
[110] Fix | Delete
- the data variable will be processed through [`json_encode`](http://php.net/manual/en/function.json-encode.php) with default values for arguments.
[111] Fix | Delete
- an error will be thrown if the [JSON Extension](http://php.net/manual/en/book.json.php) is not available.
[112] Fix | Delete
[113] Fix | Delete
### Form Requests *(`application/x-www-form-urlencoded`)*
[114] Fix | Delete
[115] Fix | Delete
A typical Form Request can be constructed using the `Unirest\Request\Body::Form` helper:
[116] Fix | Delete
[117] Fix | Delete
```php
[118] Fix | Delete
$headers = array('Accept' => 'application/json');
[119] Fix | Delete
$data = array('name' => 'ahmad', 'company' => 'mashape');
[120] Fix | Delete
[121] Fix | Delete
$body = Unirest\Request\Body::form($data);
[122] Fix | Delete
[123] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $body);
[124] Fix | Delete
```
[125] Fix | Delete
[126] Fix | Delete
**Notes:**
[127] Fix | Delete
- `Content-Type` headers will be automatically set to `application/x-www-form-urlencoded`
[128] Fix | Delete
- the final data array will be processed through [`http_build_query`](http://php.net/manual/en/function.http-build-query.php) with default values for arguments.
[129] Fix | Delete
[130] Fix | Delete
### Multipart Requests *(`multipart/form-data`)*
[131] Fix | Delete
[132] Fix | Delete
A Multipart Request can be constructed using the `Unirest\Request\Body::Multipart` helper:
[133] Fix | Delete
[134] Fix | Delete
```php
[135] Fix | Delete
$headers = array('Accept' => 'application/json');
[136] Fix | Delete
$data = array('name' => 'ahmad', 'company' => 'mashape');
[137] Fix | Delete
[138] Fix | Delete
$body = Unirest\Request\Body::multipart($data);
[139] Fix | Delete
[140] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $body);
[141] Fix | Delete
```
[142] Fix | Delete
[143] Fix | Delete
**Notes:**
[144] Fix | Delete
[145] Fix | Delete
- `Content-Type` headers will be automatically set to `multipart/form-data`.
[146] Fix | Delete
- an auto-generated `--boundary` will be set.
[147] Fix | Delete
[148] Fix | Delete
### Multipart File Upload
[149] Fix | Delete
[150] Fix | Delete
simply add an array of files as the second argument to to the `Multipart` helper:
[151] Fix | Delete
[152] Fix | Delete
```php
[153] Fix | Delete
$headers = array('Accept' => 'application/json');
[154] Fix | Delete
$data = array('name' => 'ahmad', 'company' => 'mashape');
[155] Fix | Delete
$files = array('bio' => '/path/to/bio.txt', 'avatar' => '/path/to/avatar.jpg');
[156] Fix | Delete
[157] Fix | Delete
$body = Unirest\Request\Body::multipart($data, $files);
[158] Fix | Delete
[159] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $body);
[160] Fix | Delete
```
[161] Fix | Delete
[162] Fix | Delete
If you wish to further customize the properties of files uploaded you can do so with the `Unirest\Request\Body::File` helper:
[163] Fix | Delete
[164] Fix | Delete
```php
[165] Fix | Delete
$headers = array('Accept' => 'application/json');
[166] Fix | Delete
$body = array(
[167] Fix | Delete
'name' => 'ahmad',
[168] Fix | Delete
'company' => 'mashape'
[169] Fix | Delete
'bio' => Unirest\Request\Body::file('/path/to/bio.txt', 'text/plain'),
[170] Fix | Delete
'avatar' => Unirest\Request\Body::file('/path/to/my_avatar.jpg', 'text/plain', 'avatar.jpg')
[171] Fix | Delete
);
[172] Fix | Delete
[173] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $body);
[174] Fix | Delete
```
[175] Fix | Delete
[176] Fix | Delete
**Note**: we did not use the `Unirest\Request\Body::multipart` helper in this example, it is not needed when manually adding files.
[177] Fix | Delete
[178] Fix | Delete
### Custom Body
[179] Fix | Delete
[180] Fix | Delete
Sending a custom body such rather than using the `Unirest\Request\Body` helpers is also possible, for example, using a [`serialize`](http://php.net/manual/en/function.serialize.php) body string with a custom `Content-Type`:
[181] Fix | Delete
[182] Fix | Delete
```php
[183] Fix | Delete
$headers = array('Accept' => 'application/json', 'Content-Type' => 'application/x-php-serialized');
[184] Fix | Delete
$body = serialize((array('foo' => 'hello', 'bar' => 'world'));
[185] Fix | Delete
[186] Fix | Delete
$response = Unirest\Request::post('http://mockbin.com/request', $headers, $body);
[187] Fix | Delete
```
[188] Fix | Delete
[189] Fix | Delete
### Authentication
[190] Fix | Delete
[191] Fix | Delete
First, if you are using [Mashape][mashape-url]:
[192] Fix | Delete
```php
[193] Fix | Delete
// Mashape auth
[194] Fix | Delete
Unirest\Request::setMashapeKey('<mashape_key>');
[195] Fix | Delete
```
[196] Fix | Delete
[197] Fix | Delete
Otherwise, passing a username, password *(optional)*, defaults to Basic Authentication:
[198] Fix | Delete
[199] Fix | Delete
```php
[200] Fix | Delete
// basic auth
[201] Fix | Delete
Unirest\Request::auth('username', 'password');
[202] Fix | Delete
```
[203] Fix | Delete
[204] Fix | Delete
The third parameter, which is a bitmask, will Unirest which HTTP authentication method(s) you want it to use for your proxy authentication.
[205] Fix | Delete
[206] Fix | Delete
If more than one bit is set, Unirest *(at PHP's libcurl level)* will first query the site to see what authentication methods it supports and then pick the best one you allow it to use. *For some methods, this will induce an extra network round-trip.*
[207] Fix | Delete
[208] Fix | Delete
**Supported Methods**
[209] Fix | Delete
[210] Fix | Delete
| Method | Description |
[211] Fix | Delete
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
[212] Fix | Delete
| `CURLAUTH_BASIC` | HTTP Basic authentication. This is the default choice |
[213] Fix | Delete
| `CURLAUTH_DIGEST` | HTTP Digest authentication. as defined in [RFC 2617](http://www.ietf.org/rfc/rfc2617.txt) |
[214] Fix | Delete
| `CURLAUTH_DIGEST_IE` | HTTP Digest authentication with an IE flavor. *The IE flavor is simply that libcurl will use a special "quirk" that IE is known to have used before version 7 and that some servers require the client to use.* |
[215] Fix | Delete
| `CURLAUTH_NEGOTIATE` | HTTP Negotiate (SPNEGO) authentication. as defined in [RFC 4559](http://www.ietf.org/rfc/rfc4559.txt) |
[216] Fix | Delete
| `CURLAUTH_NTLM` | HTTP NTLM authentication. A proprietary protocol invented and used by Microsoft. |
[217] Fix | Delete
| `CURLAUTH_NTLM_WB` | NTLM delegating to winbind helper. Authentication is performed by a separate binary application. *see [libcurl docs](http://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html) for more info* |
[218] Fix | Delete
| `CURLAUTH_ANY` | This is a convenience macro that sets all bits and thus makes libcurl pick any it finds suitable. libcurl will automatically select the one it finds most secure. |
[219] Fix | Delete
| `CURLAUTH_ANYSAFE` | This is a convenience macro that sets all bits except Basic and thus makes libcurl pick any it finds suitable. libcurl will automatically select the one it finds most secure. |
[220] Fix | Delete
| `CURLAUTH_ONLY` | This is a meta symbol. OR this value together with a single specific auth value to force libcurl to probe for un-restricted auth and if not, only that single auth algorithm is acceptable. |
[221] Fix | Delete
[222] Fix | Delete
```php
[223] Fix | Delete
// custom auth method
[224] Fix | Delete
Unirest\Request::proxyAuth('username', 'password', CURLAUTH_DIGEST);
[225] Fix | Delete
```
[226] Fix | Delete
[227] Fix | Delete
Previous versions of **Unirest** support *Basic Authentication* by providing the `username` and `password` arguments:
[228] Fix | Delete
[229] Fix | Delete
```php
[230] Fix | Delete
$response = Unirest\Request::get('http://mockbin.com/request', null, null, 'username', 'password');
[231] Fix | Delete
```
[232] Fix | Delete
[233] Fix | Delete
**This has been deprecated, and will be completely removed in `v.3.0.0` please use the `Unirest\Request::auth()` method instead**
[234] Fix | Delete
[235] Fix | Delete
### Cookies
[236] Fix | Delete
[237] Fix | Delete
Set a cookie string to specify the contents of a cookie header. Multiple cookies are separated with a semicolon followed by a space (e.g., "fruit=apple; colour=red")
[238] Fix | Delete
[239] Fix | Delete
```php
[240] Fix | Delete
Unirest\Request::cookie($cookie)
[241] Fix | Delete
```
[242] Fix | Delete
[243] Fix | Delete
Set a cookie file path for enabling cookie reading and storing cookies across multiple sequence of requests.
[244] Fix | Delete
[245] Fix | Delete
```php
[246] Fix | Delete
Unirest\Request::cookieFile($cookieFile)
[247] Fix | Delete
```
[248] Fix | Delete
[249] Fix | Delete
`$cookieFile` must be a correct path with write permission.
[250] Fix | Delete
[251] Fix | Delete
### Request Object
[252] Fix | Delete
[253] Fix | Delete
```php
[254] Fix | Delete
Unirest\Request::get($url, $headers = array(), $parameters = null)
[255] Fix | Delete
Unirest\Request::post($url, $headers = array(), $body = null)
[256] Fix | Delete
Unirest\Request::put($url, $headers = array(), $body = null)
[257] Fix | Delete
Unirest\Request::patch($url, $headers = array(), $body = null)
[258] Fix | Delete
Unirest\Request::delete($url, $headers = array(), $body = null)
[259] Fix | Delete
```
[260] Fix | Delete
[261] Fix | Delete
- `url` - Endpoint, address, or uri to be acted upon and requested information from.
[262] Fix | Delete
- `headers` - Request Headers as associative array or object
[263] Fix | Delete
- `body` - Request Body as associative array or object
[264] Fix | Delete
[265] Fix | Delete
You can send a request with any [standard](http://www.iana.org/assignments/http-methods/http-methods.xhtml) or custom HTTP Method:
[266] Fix | Delete
[267] Fix | Delete
```php
[268] Fix | Delete
Unirest\Request::send(Unirest\Method::LINK, $url, $headers = array(), $body);
[269] Fix | Delete
[270] Fix | Delete
Unirest\Request::send('CHECKOUT', $url, $headers = array(), $body);
[271] Fix | Delete
```
[272] Fix | Delete
[273] Fix | Delete
### Response Object
[274] Fix | Delete
[275] Fix | Delete
Upon recieving a response Unirest returns the result in the form of an Object, this object should always have the same keys for each language regarding to the response details.
[276] Fix | Delete
[277] Fix | Delete
- `code` - HTTP Response Status Code (Example `200`)
[278] Fix | Delete
- `headers` - HTTP Response Headers
[279] Fix | Delete
- `body` - Parsed response body where applicable, for example JSON responses are parsed to Objects / Associative Arrays.
[280] Fix | Delete
- `raw_body` - Un-parsed response body
[281] Fix | Delete
[282] Fix | Delete
### Advanced Configuration
[283] Fix | Delete
[284] Fix | Delete
You can set some advanced configuration to tune Unirest-PHP:
[285] Fix | Delete
[286] Fix | Delete
#### Custom JSON Decode Flags
[287] Fix | Delete
[288] Fix | Delete
Unirest uses PHP's [JSON Extension](http://php.net/manual/en/book.json.php) for automatically decoding JSON responses.
[289] Fix | Delete
sometime you may want to return associative arrays, limit the depth of recursion, or use any of the [customization flags](http://php.net/manual/en/json.constants.php).
[290] Fix | Delete
[291] Fix | Delete
To do so, simply set the desired options using the `jsonOpts` request method:
[292] Fix | Delete
[293] Fix | Delete
```php
[294] Fix | Delete
Unirest\Request::jsonOpts(true, 512, JSON_NUMERIC_CHECK & JSON_FORCE_OBJECT & JSON_UNESCAPED_SLASHES);
[295] Fix | Delete
```
[296] Fix | Delete
[297] Fix | Delete
#### Timeout
[298] Fix | Delete
[299] Fix | Delete
You can set a custom timeout value (in **seconds**):
[300] Fix | Delete
[301] Fix | Delete
```php
[302] Fix | Delete
Unirest\Request::timeout(5); // 5s timeout
[303] Fix | Delete
```
[304] Fix | Delete
[305] Fix | Delete
#### Proxy
[306] Fix | Delete
[307] Fix | Delete
Set the proxy to use for the upcoming request.
[308] Fix | Delete
[309] Fix | Delete
you can also set the proxy type to be one of `CURLPROXY_HTTP`, `CURLPROXY_HTTP_1_0`, `CURLPROXY_SOCKS4`, `CURLPROXY_SOCKS5`, `CURLPROXY_SOCKS4A`, and `CURLPROXY_SOCKS5_HOSTNAME`.
[310] Fix | Delete
[311] Fix | Delete
*check the [cURL docs](http://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html) for more info*.
[312] Fix | Delete
[313] Fix | Delete
```php
[314] Fix | Delete
// quick setup with default port: 1080
[315] Fix | Delete
Unirest\Request::proxy('10.10.10.1');
[316] Fix | Delete
[317] Fix | Delete
// custom port and proxy type
[318] Fix | Delete
Unirest\Request::proxy('10.10.10.1', 8080, CURLPROXY_HTTP);
[319] Fix | Delete
[320] Fix | Delete
// enable tunneling
[321] Fix | Delete
Unirest\Request::proxy('10.10.10.1', 8080, CURLPROXY_HTTP, true);
[322] Fix | Delete
```
[323] Fix | Delete
[324] Fix | Delete
##### Proxy Authenticaton
[325] Fix | Delete
[326] Fix | Delete
Passing a username, password *(optional)*, defaults to Basic Authentication:
[327] Fix | Delete
[328] Fix | Delete
```php
[329] Fix | Delete
// basic auth
[330] Fix | Delete
Unirest\Request::proxyAuth('username', 'password');
[331] Fix | Delete
```
[332] Fix | Delete
[333] Fix | Delete
The third parameter, which is a bitmask, will Unirest which HTTP authentication method(s) you want it to use for your proxy authentication.
[334] Fix | Delete
[335] Fix | Delete
If more than one bit is set, Unirest *(at PHP's libcurl level)* will first query the site to see what authentication methods it supports and then pick the best one you allow it to use. *For some methods, this will induce an extra network round-trip.*
[336] Fix | Delete
[337] Fix | Delete
See [Authentication](#authentication) for more details on methods supported.
[338] Fix | Delete
[339] Fix | Delete
```php
[340] Fix | Delete
// basic auth
[341] Fix | Delete
Unirest\Request::proxyAuth('username', 'password', CURLAUTH_DIGEST);
[342] Fix | Delete
```
[343] Fix | Delete
[344] Fix | Delete
#### Default Request Headers
[345] Fix | Delete
[346] Fix | Delete
You can set default headers that will be sent on every request:
[347] Fix | Delete
[348] Fix | Delete
```php
[349] Fix | Delete
Unirest\Request::defaultHeader('Header1', 'Value1');
[350] Fix | Delete
Unirest\Request::defaultHeader('Header2', 'Value2');
[351] Fix | Delete
```
[352] Fix | Delete
[353] Fix | Delete
You can set default headers in bulk by passing an array:
[354] Fix | Delete
[355] Fix | Delete
```php
[356] Fix | Delete
Unirest\Request::defaultHeaders(array(
[357] Fix | Delete
'Header1' => 'Value1',
[358] Fix | Delete
'Header2' => 'Value2'
[359] Fix | Delete
));
[360] Fix | Delete
```
[361] Fix | Delete
[362] Fix | Delete
You can clear the default headers anytime with:
[363] Fix | Delete
[364] Fix | Delete
```php
[365] Fix | Delete
Unirest\Request::clearDefaultHeaders();
[366] Fix | Delete
```
[367] Fix | Delete
[368] Fix | Delete
#### Default cURL Options
[369] Fix | Delete
[370] Fix | Delete
You can set default [cURL options](http://php.net/manual/en/function.curl-setopt.php) that will be sent on every request:
[371] Fix | Delete
[372] Fix | Delete
```php
[373] Fix | Delete
Unirest\Request::curlOpt(CURLOPT_COOKIE, 'foo=bar');
[374] Fix | Delete
```
[375] Fix | Delete
[376] Fix | Delete
You can set options bulk by passing an array:
[377] Fix | Delete
[378] Fix | Delete
```php
[379] Fix | Delete
Unirest\Request::curlOpts(array(
[380] Fix | Delete
CURLOPT_COOKIE => 'foo=bar'
[381] Fix | Delete
));
[382] Fix | Delete
```
[383] Fix | Delete
[384] Fix | Delete
You can clear the default options anytime with:
[385] Fix | Delete
[386] Fix | Delete
```php
[387] Fix | Delete
Unirest\Request::clearCurlOpts();
[388] Fix | Delete
```
[389] Fix | Delete
[390] Fix | Delete
#### SSL validation
[391] Fix | Delete
[392] Fix | Delete
You can explicitly enable or disable SSL certificate validation when consuming an SSL protected endpoint:
[393] Fix | Delete
[394] Fix | Delete
```php
[395] Fix | Delete
Unirest\Request::verifyPeer(false); // Disables SSL cert validation
[396] Fix | Delete
```
[397] Fix | Delete
[398] Fix | Delete
By default is `true`.
[399] Fix | Delete
[400] Fix | Delete
#### Utility Methods
[401] Fix | Delete
[402] Fix | Delete
```php
[403] Fix | Delete
// alias for `curl_getinfo`
[404] Fix | Delete
Unirest\Request::getInfo()
[405] Fix | Delete
[406] Fix | Delete
// returns internal cURL handle
[407] Fix | Delete
Unirest\Request::getCurlHandle()
[408] Fix | Delete
```
[409] Fix | Delete
[410] Fix | Delete
----
[411] Fix | Delete
[412] Fix | Delete
Made with &#9829; from the [Mashape][mashape-url] team
[413] Fix | Delete
[414] Fix | Delete
[unirest-logo]: http://cl.ly/image/2P373Y090s2O/Image%202015-10-12%20at%209.48.06%20PM.png
[415] Fix | Delete
[416] Fix | Delete
[417] Fix | Delete
[mashape-url]: https://www.mashape.com/
[418] Fix | Delete
[419] Fix | Delete
[license-url]: https://github.com/Mashape/unirest-php/blob/master/LICENSE
[420] Fix | Delete
[421] Fix | Delete
[gitter-url]: https://gitter.im/Mashape/unirest-php
[422] Fix | Delete
[gitter-image]: https://img.shields.io/badge/Gitter-Join%20Chat-blue.svg?style=flat
[423] Fix | Delete
[424] Fix | Delete
[travis-url]: https://travis-ci.org/Mashape/unirest-php
[425] Fix | Delete
[travis-image]: https://img.shields.io/travis/Mashape/unirest-php.svg?style=flat
[426] Fix | Delete
[427] Fix | Delete
[packagist-url]: https://packagist.org/packages/Mashape/unirest-php
[428] Fix | Delete
[packagist-license]: https://img.shields.io/packagist/l/Mashape/unirest-php.svg?style=flat
[429] Fix | Delete
[packagist-version]: https://img.shields.io/packagist/v/Mashape/unirest-php.svg?style=flat
[430] Fix | Delete
[packagist-downloads]: https://img.shields.io/packagist/dm/Mashape/unirest-php.svg?style=flat
[431] Fix | Delete
[432] Fix | Delete
[codeclimate-url]: https://codeclimate.com/github/Mashape/unirest-php
[433] Fix | Delete
[codeclimate-quality]: https://img.shields.io/codeclimate/github/Mashape/unirest-php.svg?style=flat
[434] Fix | Delete
[codeclimate-coverage]: https://img.shields.io/codeclimate/coverage/github/Mashape/unirest-php.svg?style=flat
[435] Fix | Delete
[436] Fix | Delete
[versioneye-url]: https://www.versioneye.com/user/projects/54b82450050646ca5c0001f3
[437] Fix | Delete
[versioneye-image]: https://img.shields.io/versioneye/d/php/mashape:unirest-php.svg?style=flat
[438] Fix | Delete
[439] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function