<?php
include('./curl.wrapper.php');
$curl = new CCurlWrapper();
if($curl->InitEx() === false)
die('Unable to init the CURL library' . "\n");
$json_pp = array();
$json_pp['p1'] = '1st param';
$json_pp['p2'] = '2nd param';
$json_pp['p3'] = array();
$json_pp['p3']['s_p1'] = 'Sub param 1';
$json_pp['p3']['s_p2'] = 'Sub param 2';
$curl->SetJsonPOSTMode($json_pp);
$content = $curl->Exec('http://192.168.1.105/index.php');
?>
|