mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-20 08:31:46 +00:00
20 lines
391 B
PHP
20 lines
391 B
PHP
<?php
|
|
require '../src/Curl/Curl.php';
|
|
require '../src/Curl/MultiCurl.php';
|
|
|
|
use \Curl\Curl;
|
|
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();
|