http.Post

Can someone explain to me how to use this on the PHP side of things? Like how to display the POST parameters being sent to the page.

Would it be


<?php echo $_POST['parameternamehere']; ?>

And would the lua code look like this



http.Post('urlhere', {
		hostname = GetHostName(),
		players = player.GetAll()
	})


that pretty much it, but you should have a callback function for successful request and one for failure if you want.



local data = {
		hostname = GetHostName(),
		players = player.GetAll()
	}
	
http.Post(
	'urlhere', 
	data,
	function( content, length, headers )
		--onSuccess
	end,
	function( content, length, headers )
		--onFailure
	end
	)


Do you have to have a onsuccess function?

Nope.

Where would i put the file in the lua/autorun/server?