5 ms·
How did you find quirky headers on other websites? Did you use a script?
by asebold 6y ago
How did you find quirky headers on other websites? Did you use a script?
- saagarjha 6y ago$ curl -s -o /dev/null -D - https://frenxi.com/http-headers-you-dont-expect/ HTTP/1.1 200 OK Content-Type: text/html Content-Length: 47608 Connection: keep-alive Last-Modified: Fri, 15 May 2020 01:35:43 GMT x-amz-server-side-encryption: AES256 Accept-Ranges: bytes Server: AmazonS3 Via: 1.1 ddaf46a95abcfc80e8eae76235e2127c.cloudfront.net (CloudFront), 1.1 37d64bca4c93552139fb3a85c9c4a119.cloudfront.net (CloudFront) Strict-Transport-Security: max-age=31536000; includeSubDomains X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-hack: Like HTTP headers? Check this blog post https://frenxi.com/http-headers-you-dont-expect/ X-Amz-Cf-Pop: SEA19-C2 Date: Fri, 15 May 2020 04:48:24 GMT ETag: "194d54c969aad10b9c74ca6d591ae3e7" Cache-Control: public, must-revalidate, max-age=0 Vary: Accept-Encoding X-Cache: RefreshHit from cloudfront X-Amz-Cf-Pop: SFO20-C1 X-Amz-Cf-Id: J_OaNOGn_a8oZRQzKfe9spXbuDp-V-zhmlX1tQJSLNM1BD4EFTYERg==
- throw_away 6y agocurl -I https://frenxi.com/http-headers-you-dont-expect/ also works for this.
- tyingq 6y agoSends a HEAD request instead of a GET, and the output goes to STDERR, so I prefer the parent's suggestion.
- throw_away 6y agocurl -IXGET https://frenxi.com/http-headers-you-dont-expect/ then. All three pop out on STDOUT & this one is shorter with less to remember.
- tyingq 6y agoYep, better. -sIXGET omits the progress bar stuff.