« Back to Index

[Curl Redirect Output and Grep]

View original Gist on GitHub

Tags: #curl #redirect #stdout #grep

Curl Redirect Output and Grep.bash

curl -svo /dev/null -H 'Fastly-Debug:1' https://www.buzzfeednews.com/article/johnpaczkowski/apple-arcade-iphone-pro-appletv 2>&1 | sort | grep -iE '^< ((cache|surrogate)-control|surrogate-key|cache|fastly)'