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