JacquesSteventon Posted August 12, 2016 Share Posted August 12, 2016 Hi all,I am using cloudtrax to output a HTTP POST api to my web hosted server. Cloudtrax have given users in this guide - https://help.cloudtrax.com/hc/en-us/articles/207985916-CloudTrax-Presence-Reporting-API a script that you should put on your web host for PHP users. I have done this and named it input.php .Should I point the POST to this input.php file? When I go to the input.php file in a web browser it creates another file called mydata.txt . Pointing the POST to either link does not put input any data. Please could someone guide me in the right direction as I am having trouble. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/301869-where-should-i-be-sending-the-html-post-data-please-someone-help/ Share on other sites More sharing options...
Jacques1 Posted August 12, 2016 Share Posted August 12, 2016 Your job is to write a PHP script which is ready to receive and process the reports as JSON-encoded data in HTTP POST requests. Then you register the URL of the script at CloudTrax, and they'll start to send you the reports. The code on the CloudTrax page is just an example. It doesn't do anything useful (it merely writes the raw data into a text file). If you're not getting any reports despite a correct registration, ask CloudTrax. Quote Link to comment https://forums.phpfreaks.com/topic/301869-where-should-i-be-sending-the-html-post-data-please-someone-help/#findComment-1536046 Share on other sites More sharing options...
JacquesSteventon Posted August 12, 2016 Author Share Posted August 12, 2016 This is very strange as I thought I was going down the right lines. What I have done so far. Set cloudtrax to https://example.co.uk/input.php Put the source code in the input.php file From what I can see this should be now creating a file called mydata.txt The file though is not creating. I know the web server can process POST data and I have also tried this on another domain hosted on my VPS and I can still not get this to work. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/301869-where-should-i-be-sending-the-html-post-data-please-someone-help/#findComment-1536058 Share on other sites More sharing options...
Jacques1 Posted August 12, 2016 Share Posted August 12, 2016 Are you sure you have the right firmware as described on the page? Are you sure you've activated the feature and entered a key? Have you tried plain HTTP rather than HTTPS? There isn't too much we could do from here. If nothing works, ask them. Quote Link to comment https://forums.phpfreaks.com/topic/301869-where-should-i-be-sending-the-html-post-data-please-someone-help/#findComment-1536060 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.