Files
php-curl-class/examples/multi_curl_put.php
T

20 lines
381 B
PHP

<?php
require __DIR__ . '/../vendor/autoload.php';
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();