| Why Enterprise Is Avoiding Windows 8 in Back Page News |
|
|
| Sony teases PS4 design in Sony Console |
|
|
| From outlook 2007 to Apple mail in Mac Discussion & Support |
|
|
| Theatergoer praised as hero for smashing woman's cellphone in Real World News |
|
|
| Something's wierd with my..system in Hardware Hangout |
|
Posted 02 February 2013 - 17:26
Posted 02 February 2013 - 17:42
<?php session_start(); $_SESSION['post_data'] = $_POST; ?>
<?php session_start(); $_SESSION['post_data']/// Use this as the POST variable. ?>
<?php session_start(); $_SESSION['post_data']/// Use this as the POST variable. //After finishing the code: unset($_SESSION['post_data']); ?>
Posted 02 February 2013 - 17:43
$url = "https://www.formstack.com/forms/index.php"
function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
Posted 02 February 2013 - 18:20
curl --data "param1=value1¶m2=value2" http://example.com/resource.cgi
Posted 02 February 2013 - 19:23
Jose_49, on 02 February 2013 - 17:42, said:
Axel, on 02 February 2013 - 17:43, said:
Axel, on 02 February 2013 - 17:43, said:
$url = "https://www.formstack.com/forms/index.php"
function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$data = json_encode($_POST);
$ch = curl_init('https://www.formstack.com/forms/index.php');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json'
);
$result = curl_exec($ch);
$ch = curl_init('https://www.formstack.com/forms/index.php');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
Axel, on 02 February 2013 - 18:20, said:
curl --data "param1=value1¶m2=value2" http://example.com/resource.cgi
Posted 04 February 2013 - 09:39
theblazingangel, on 02 February 2013 - 19:23, said:
$ch = curl_init('https://www.formstack.com/forms/index.php');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, $_POST);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);