Skip to content

Instantly share code, notes, and snippets.

@stefanocarli
stefanocarli / responseHeaders.sh
Created February 7, 2020 09:37
Display response headers in curl
# -s - Avoid showing progress bar
# -D - - Dump headers to a file, but - sends it to stdout
# -o /dev/null - Ignore response body
curl -sD - -o /dev/null https://WWW.EXAMPLE.COM
@stefanocarli
stefanocarli / testCORS.sh
Last active February 7, 2020 09:32
Test CORS with cURL
curl -I -X OPTIONS \
-H "Origin: https://WWW.EXAMPLE.COM" \
-H 'Access-Control-Request-Method: GET' \
https://WWW.EXAMPLE.COM/SUBFOLDER 2>&1 | grep 'Access-Control-Allow-Origin'
@stefanocarli
stefanocarli / all.txt
Created December 29, 2017 08:45 — forked from jhaddix/all.txt
dnsall
This file has been truncated, but you can view the full file.
@
*
0
00
0-0
000
0000
00000