diff --git a/README.md b/README.md index 2ab8f8b..f0ec6d5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_474 TILs and counting..._ +_475 TILs and counting..._ --- @@ -409,6 +409,7 @@ _474 TILs and counting..._ - [Command Line Length Limitations](unix/command-line-length-limitations.md) - [Copying File Contents To System Paste Buffer](unix/copying-file-contents-to-system-paste-buffer.md) - [Create A File Descriptor with Process Substitution](unix/create-a-file-descriptor-with-process-substitution.md) +- [Curling For Headers](unix/curling-for-headers.md) - [Curling With Basic Auth Credentials](unix/curling-with-basic-auth-credentials.md) - [Display Free Disk Space](unix/display-free-disk-space.md) - [Do Not Overwrite Existing Files](unix/do-not-overwrite-existing-files.md) diff --git a/unix/curling-for-headers.md b/unix/curling-for-headers.md new file mode 100644 index 0000000..07d2b81 --- /dev/null +++ b/unix/curling-for-headers.md @@ -0,0 +1,15 @@ +# Curling For Headers + +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: + +```bash +$ curl -I localhost:3000/posts +``` + +h/t Dillon Hafer