Show content of a "POST Request" on a webpage

Alles, was den Apache betrifft, kann hier besprochen werden.

Show content of a "POST Request" on a webpage

Postby mw42 » 19. August 2019 10:10

Hi there,

my application is able to send a "POST" requests to a webserver, containing certain parameters regarding its status.

How can I get my Apache to show a website containing this information? Is this only possible with JavaScript or something?

My application can detect its own status (on / off / error) and will send a POST request (with the correct status) to my apache server once every hour. I want to be able to show this status on a website (like with a colored box green / grey / red or something) and have that updated as soon as a new request is sent.

I do know HTML / CSS / WordPress / Typo3, but I am not very familiar with JavaScript and such.

Posts: 1
Joined: 19. August 2019 10:01
XAMPP version: 7.3.8
Operating System: Windows Server 2016

Re: Show content of a "POST Request" on a webpage

Postby Nobbie » 19. August 2019 13:13

JavaScript cannot show HTTP Server Variables, as it does not run on the Server, i.e. Apache does not know JavaScript in any way. JavaScript is executed by your local browser instead.

You need a server based Programming Language for that, for example PHP.
Posts: 11766
Joined: 09. March 2008 13:04

Return to Apache

Who is online

Users browsing this forum: No registered users and 9 guests