I need a live test server that accepts my requests for basic information via HTTP GET and also allows me to POST (even if it's 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 as well.
Does anyone know of a server that I can send dummy test messages too?
https://www.mockable.io. It has nice feature of getting endpoints without login (24h temporary account)
Create choose a free web host and put the following code
nc
one-liner local test serverSetup a local test server in one line under Linux:
Sample request maker on another shell:
then on the first shell you see the request that was made appear:
nc
from thenetcat-openbsd
package is widely available and pre-installed on Ubuntu.Tested on Ubuntu 18.04.
I have created an open-source hackable local testing server that you can get running in minutes. You can create new API's, define your own response and hack it in any ways you wish to.
Github Link : https://github.com/prabodhprakash/localTestingServer
http://httpbin.org/
It echoes the data used in your request for any of these types:
If you want a local test server that accepts any URL and just dumps the request to the console, you can use node:
Save it in a file 'echo.js' and run it as follows:
You can then submit data:
which will be shown in the server's stdout: