language php test

paste manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
require __DIR__ . '/../vendor/autoload.php';

use Curl\Curl;

// curl --request DELETE "https://httpbin.org/delete?key=value" --data "a=1&b=2&c=3"

$curl = new Curl();
$curl->delete(
'https://httpbin.org/delete',
[
'key' => 'value',
],
[
'a' => '1',
'b' => '2',
'c' => '3',
]
);

if ($curl->error) {
echo 'Error: ' . $curl->errorMessage . "\n";
} else {
echo 'Data server received via DELETE:' . "\n";
var_dump($curl->response->form);
}

github shortcode

php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require __DIR__ . '/../vendor/autoload.php';

use Curl\Curl;

// curl --request DELETE "https://httpbin.org/delete?key=value" --data "a=1&b=2&c=3"

$curl = new Curl();
$curl->delete(
'https://httpbin.org/delete',
[
'key' => 'value',
],
[
'a' => '1',
'b' => '2',
'c' => '3',
]
);

if ($curl->error) {
echo 'Error: ' . $curl->errorMessage . "\n";
} else {
echo 'Data server received via DELETE:' . "\n";
var_dump($curl->response->form);
}

avatar
Dimas Lanjaka (L3n4r0x)
All in one collection shortcodes for hexo
Follow Me
Announcement
This is my Blog
Recent Post
Info
Article :
0
UV :
PV :
Last Push :