PHP Classes

File: post_json.php

Recommend this page to a friend!
  Classes of Schroetter Christian   PHP Curl HTTP Wrapper   post_json.php   Download  
File: post_json.php
Role: Example script
Content type: text/plain
Description: Sample file
Class: PHP Curl HTTP Wrapper
Send HTTP requests with Curl and cache the results
Author: By
Last change:
Date: 9 years ago
Size: 439 bytes


Class file image Download

$curl = new CCurlWrapper();
$curl->InitEx() === false)
'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';

$content = $curl->Exec('');