Post

2 followers Follow
0
Avatar

Outbound Call Help

I am trying to create an outbound call however I only seem to be getting an empty array as a $_POST.

My PHP script is very simple:

<?php

echo "got here";

$my_file = 'file.txt';
$handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file);
$data = print_r($_POST, TRUE);
fwrite($handle, $data);

?>

When I trigger the workflow it creates the log file so SOMETHING is happening but the log only contains "array ( )"

I am telling clarizen to send all the information related to the current project.

Josh Boutwell Answered

Please sign in to leave a comment.

2 comments

1
Avatar

I found the answer.

I was looking for the wrong variable. Look for $HTTP_RAW_POST_DATA

Josh Boutwell 1 vote
Comment actions Permalink
0
Avatar

Josh,

I am glad you found the answer AND shared it with our community. Please continue to do so to share the knowledge. As a reminder, please remember to post API related questions such as these in the proper Topic 'Developer'. I have changed it so that it will be in the correct topic.

Thank you

Boris Krutiy 0 votes
Comment actions Permalink