Skip to content

Instantly share code, notes, and snippets.

@agritsik
Last active April 20, 2016 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agritsik/4ab213cd0a584e2220351efe0b1cdd32 to your computer and use it in GitHub Desktop.
Save agritsik/4ab213cd0a584e2220351efe0b1cdd32 to your computer and use it in GitHub Desktop.
How to check REST API
#!/usr/bin/env bash
# returns response body and headers
curl -i http://localhost:8080/app/resources/countries
# returns response body and headers in verbose mode, useful for debugging
curl -v http://localhost:8080/app/resources/countries
# returns response body and headers
wget -qSO - http://localhost:8080/app/resources/countries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment