This question was originally posted on DCIM Support by Danny Gibson on 2015-03-11
I am attempting to utilize the HTTP Post method for alerting from DCE but am not having any success. I have a url listening for the request to a page called isx_post.php which has no authentication requirements and accepts post messages from curl or a webpage. But when attempting to generate a Test Message for the HTTP Post notification policy I never get any request whatsoever...is there some secret to getting HTTP Post from DCE to function?
curl command to listening page:
Content of log I am writing the post to:
$ cat post1426107220.log
array ( 'name' => 'Danny', 'email' => 'email@example.com',
Your help would be greatly appreciated...Danny
This comment was originally posted on DCIM Support by piotr on 2015-03-13
Hi Danny, thanks for sharing! @community - any success in resolving such problem? If yes - share it with us 🙂
This answer was originally posted on DCIM Support by Søren Bruncke Mikkelsen on 2015-03-17
When using the test alert action functionality in DCE the HTTP post is send with no data.
We have created a small php test file that print Array() to a file post.txt when using the test functionality.
When using your above curl command the file gets similar to your log file.php<?php $fp = fopen('/tmp/post.txt', 'a'); fwrite($fp, print_r($_POST, true)); fclose($fp); ?>
Not sure what is wrong at your end but it might be some network related issue like firewall or similar blocking the post?
if you go to the webpage of the DCE server and login there is a "Status" link in top. In that page you will find basic network troubleshooting tools that might be useful.
This answer was originally posted on DCIM Support by Justin Brown on 2016-06-08
StruxureWare uses HTTP POST to upload mime encoded files. If you're using PHP rely upon the $_FILES global to retrieve post results. These files, btw, are XML encoded and all but indecipherable. If there's any documentation as to their schema and/or methods of parsing I've had NO luck finding it. Good luck.
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!