full JSON
This commit is contained in:
parent
ac7084ba39
commit
0ecdce5a84
|
@ -22,7 +22,6 @@ function get_IA_Response($iaUrl,$postParams){
|
|||
'Content-Type: application/json',
|
||||
'Content-Length: ' . strlen($data_string))
|
||||
);
|
||||
echo '<p>'.$data_string.'</p>';
|
||||
$output= curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
|
|
|
@ -38,16 +38,6 @@ function get_IA_Response($iaUrl,$postParams){
|
|||
//send params JSON as body
|
||||
|
||||
$data_string = json_encode($postParams);
|
||||
/*
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $iaUrl);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $postParams);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
$output = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
*/
|
||||
|
||||
$ch = curl_init($iaUrl);
|
||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
|
||||
|
@ -59,6 +49,6 @@ function get_IA_Response($iaUrl,$postParams){
|
|||
);
|
||||
$output= curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
echo '<p>'.$data_string.'</p>';
|
||||
return htmlentities($output);
|
||||
}
|
Loading…
Reference in New Issue
Block a user