PDA

View Full Version : Looking for a PHP page with POST support



BoppreH
July 17th, 2009, 01:19 PM
I made a simple app to send POST requests to some server and show the result. It's very simple but very useful, and I would like to distribute it.

However, I don't have a test/example online page to demonstrate the program.


My question is: do you know any (stable) hosted PHP file that is waiting for some POST requests? I don't really care what will be done with the sent data, or if it returns an error; I'm just looking for a page that will answer.

RvGaTe
July 22nd, 2009, 07:00 AM
Im not sure why this is so usefull other then checking/testing if your request is working properly... if it's only testing purposes, i'd suggest running a local webserver like XAMMP (http://www.apachefriends.org/en/xampp.html)

and i dont think there are any hosting providers that have a script waiting for post requests without a purpose...

anyway, to get you started after you installed xammp, here's a script that does absolutely nothing other then returning your values given with post or get:


<?php
echo "<strong>POST values:</strong><br/>\n<hr/>\n";
foreach($_POST as $key => $value){
echo "<strong>$key:</strong> $value <br/>\n";
}
echo "<strong>GET values:</strong><br/>\n<hr/>\n";
foreach($_GET as $key => $value){
echo "<strong>$key:</strong> $value <br/>\n";
}
?>

BoppreH
July 22nd, 2009, 09:24 AM
Problem is, it's not for ME to test. It's for whoever downloads the program.

I can't go "hey, to test and see if you like this small, stand alone flash program, you have to download, install and configure a server in your computer!". Although it'll probably happen when the user start using the program for real, but it'll be later on.

And I'm not looking specifically for a "no-purpose" page, like example.com, although that would be great. It can be anything: a login manager page, a search engine using POST (?), a page that redirects the user based on the request sent...

Basically, I'm trying to achieve a ping-like effect for POST requests.

Example:
http://www.twilightmuonline.com/index.php?page=login
This page receives the following variables via POST:
user=username&pass=password&Submit2.x=44&Submit2.y=17&Submit2=Submit

Unfortunately, the answer is a full HTML document, no matter if you send something or not.

RvGaTe
July 22nd, 2009, 12:59 PM
Host your own is all i can say on this one... (probably the best solution here to)

There is no such service as far as i know, or create an instruction video/guide (localy) to let people know how it works.

BoppreH
July 22nd, 2009, 01:32 PM
If I host it myself I'll probably forget it after a while and the file will be taken down.

Yeah, I guess I'll go with a couple of screenshots as guide.

Thanks.