<?php
$ch_1 = curl_init('http://kalikiri.ipage.com/quiz/index.php');
$ch_2 = curl_init('http://kalikiri.ipage.com/quiz/index.php');
curl_setopt($ch_1, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch_1, CURLOPT_HEADER, false);
curl_setopt($ch_2, CURLOPT_RETURNTRANSFER, true);
$data = array(
'submit' => 'text1',
'var2' => 'text2',
);
curl_setopt($ch_2, CURLOPT_POST, 1);
curl_setopt($ch_2, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch_2, CURLOPT_SSL_VERIFYPEER, false);
// all of our requests are done, we can now access the results
$response_1 = curl_exec($ch_1);
$response_2 = curl_exec($ch_2);
var_dump($response_1, $response_2);
preferences:
40.04 ms | 402 KiB | 5 Q