mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-18 02:50:40 +00:00
19 lines
341 B
PHP
19 lines
341 B
PHP
<?php
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use Curl\MultiCurl;
|
|
|
|
$multi_curl = new MultiCurl();
|
|
|
|
$multi_curl->addPatch('https://httpbin.org/patch', [
|
|
'id' => '123',
|
|
'body' => 'hello world!',
|
|
]);
|
|
$multi_curl->addPatch('https://httpbin.org/patch', [
|
|
'id' => '456',
|
|
'body' => 'hello world!',
|
|
]);
|
|
|
|
$multi_curl->start();
|