(TIL) Nix: Curling For Headers

less than 1 minute read

If you want to inspect the headers of a response from some endpoint, look no further than a quick curl command. By including the -I flag, curl will return just the headers.

For example, if you are developing a web app that is being locally served at localhost:3000 and you’d like to see what the headers look like for a particular URL, you might try something like the following command:

curl -I localhost:3000/posts

Via jbranchaud/til.

Tags: ,