Skip to content

Instantly share code, notes, and snippets.

@mahendrapaipuri
Created August 17, 2023 14:46
Show Gist options
  • Select an option

  • Save mahendrapaipuri/f429f812c426fad99e831092f216ec20 to your computer and use it in GitHub Desktop.

Select an option

Save mahendrapaipuri/f429f812c426fad99e831092f216ec20 to your computer and use it in GitHub Desktop.
List of Dummy servers for API testing

List of dummy servers for API testing

Taken from stackoverflow

httpbin.org

https://httpbin.org/

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

ptsv3.com

it showed the IP of the requester, which is helpful when you need to whitelist an IP address but aren't sure what it is.

nc

Setup a local test server in one line under Linux:

nc -kdl 8000

Alternatively, to actually send a minimal empty HTTP reply back in order to unblock HTTP clients such as wget that wait for a reply, so you can do more tests afterwards on the other shell without manually interrupting the client

while true; do printf 'HTTP/1.1 200 OK\r\n\r\n' | nc -Nl 8000; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment