Files
php-curl-class/examples/multi_curl_put.php
T
2016-01-23 14:38:29 -08:00

20 lines
378 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();