I found the answer.
I was looking for the wrong variable. Look for $HTTP_RAW_POST_DATA
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.
Please sign in to leave a comment.
I found the answer.
I was looking for the wrong variable. Look for $HTTP_RAW_POST_DATA
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