photo via Corey Templeton via CC License
Well, this post is simple, HTTP POST is relatively complex than HTTP GET, some times you want to do a quick test with your post data.
Here are the solutions I know. If you have any other solutions, let me know.
A Free POST Only Test Sever
Access: http://www.posttestserver.com/post.php. This will dump all the http data for you. A good/bad approach of this site I like is that this site will record your request and you can review your request later. But we are not always just want to view the data in web page, sometimes, we also want to use it in unit test.
For example I had posted a request and your can see it here: http://www.posttestserver.com/data/2012/05/11/00.24.01738126829
It’s a test from an iOS App I recently work on.
The Ultimate Solution for Testing HTTP Request
This is the BEST site I know for test HTTP request. As it listed on the home page, there many test endpoint:
/ipReturns Origin IP.
/headersReturns header dict.
/getReturns GET data.
/postReturns POST data.
/putReturns PUT data.
/deleteReturns DELETE data.
/gzipReturns gzip-encoded data.
/status/:codeReturns given HTTP Status code.
/response-headers?key=valReturns given response headers.
/redirect/:n302 Redirects n times.
/relative-redirect/:n302 Relative redirects n times.
/cookiesReturns cookie data.
/cookies/set/:name/:valueSets a simple cookie.
/basic-auth/:user/:passwdChallenges HTTPBasic Auth.
/digest-auth/:qop/:user/:passwdChallenges HTTP Digest Auth.
/stream/:nStreams n–100 lines.
/delay/:nDelays responding for n–10 seconds.
This site is really awesome! Just try it!
If you have any suggestion or better solutions, please leave a comment.
Via Tonny Xu http://feedproxy.google.com/~r/tonnyxu/~3/woj9p1nMg6s/ iPhone Dev