Jump to content
Sign in to follow this  
JacquesSteventon

Where should I be sending the HTML POST data? Please someone help!

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?


Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.