HTTP Test server that accepts GET/Post calls

I need a live test server that accepts my requests for basic information via HTTP GET and also allows me to POST (even if its really not doing anything). This is entirely for test purposes.

A good example is here

it easily accepts GET requests, but I need one that accepts POST requests.

Does anyone know of a server that I can send stupid test messages too?


http://httpbin.org/

It echoes the data used in your request for any of these types:

  • http://httpbin.org/ip Returns Origin IP.
  • http://httpbin.org/user-agent Returns user-agent.
  • http://httpbin.org/headers Returns header dict.
  • http://httpbin.org/get Returns GET data.
  • http://httpbin.org/post Returns POST data.
  • http://httpbin.org/put Returns PUT data.
  • http://httpbin.org/delete Returns DELETE data
  • http://httpbin.org/gzip Returns gzip-encoded data.
  • http://httpbin.org/status/:code Returns given HTTP Status code.
  • http://httpbin.org/response-headers?key=val Returns given response headers.
  • http://httpbin.org/redirect/:n 302 Redirects n times.
  • http://httpbin.org/relative-redirect/:n 302 Relative redirects n times.
  • http://httpbin.org/cookies Returns cookie data.
  • http://httpbin.org/cookies/set/:name/:value Sets a simple cookie.
  • http://httpbin.org/basic-auth/:user/:passwd Challenges HTTPBasic Auth.
  • http://httpbin.org/hidden-basic-auth/:user/:passwd 404'd BasicAuth.
  • http://httpbin.org/digest-auth/:qop/:user/:passwd Challenges HTTP Digest Auth.
  • http://httpbin.org/stream/:n Streams n–100 lines.
  • http://httpbin.org/delay/:n Delays responding for n–10 seconds.

  • There is http://ptsv2.com/

    "Here you will find a server which receives any POST you wish to give it and stores the contents for you to review."


    http://requestb.in was similar to the already mentioned tools and also had a very nice UI.

    RequestBin gives you a URL that will collect requests made to it and let you inspect them in a human-friendly way. Use RequestBin to see what your HTTP client is sending or to inspect and debug webhook requests.

    Though it has been discontinued as of Mar 21, 2018.

    We have discontinued the publicly hosted version of RequestBin due to ongoing abuse that made it very difficult to keep the site up reliably. Please see instructions for setting up your own self-hosted instance.

    链接地址: http://www.djcxy.com/p/17586.html

    上一篇: HTTP查询和URI编码的疑惑

    下一篇: 接受GET / Post调用的HTTP测试服务器