Skip to content

Instantly share code, notes, and snippets.

@majidalaeinia
Created September 5, 2021 12:20
Show Gist options
  • Save majidalaeinia/14bd07721c69cc806368e2f6df805cac to your computer and use it in GitHub Desktop.
Save majidalaeinia/14bd07721c69cc806368e2f6df805cac to your computer and use it in GitHub Desktop.
Curl Useful Commands

Curl Useful Commands

1. Get the HTTP response status code

curl -s -o /dev/null -w "%{http_code}\n" -XGET 0.0.0.0:23080

The result will be the HTTP status code:

200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment