mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-24 12:49:26 +00:00
22 lines
421 B
PHP
22 lines
421 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->addPut('https://httpbin.org/put', array(
|
|
'id' => '123',
|
|
'subject' => 'hello',
|
|
'body' => 'hello',
|
|
));
|
|
$multi_curl->addPut('https://httpbin.org/put', array(
|
|
'id' => '456',
|
|
'subject' => 'hello',
|
|
'body' => 'hello',
|
|
));
|
|
|
|
$multi_curl->start();
|