mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-19 18:21:59 +00:00
20 lines
370 B
PHP
20 lines
370 B
PHP
<?php
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use Curl\MultiCurl;
|
|
|
|
$multi_curl = new MultiCurl();
|
|
|
|
$multi_curl->addPut('https://httpbin.org/put', [
|
|
'id' => '123',
|
|
'subject' => 'hello',
|
|
'body' => 'hello',
|
|
]);
|
|
$multi_curl->addPut('https://httpbin.org/put', [
|
|
'id' => '456',
|
|
'subject' => 'hello',
|
|
'body' => 'hello',
|
|
]);
|
|
|
|
$multi_curl->start();
|