Skip to content

Instantly share code, notes, and snippets.

@Altai-man

Altai-man/curl Secret

Created November 30, 2019 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altai-man/be7037aff819f257292149e58c342c69 to your computer and use it in GitHub Desktop.
Save Altai-man/be7037aff819f257292149e58c342c69 to your computer and use it in GitHub Desktop.
➜ ~ curl -v -4 -o hehe.html https://www.perlfoundation.org/contributor-license-agreement.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 199.34.228.74:443...
* TCP_NODELAY set
0 0 0 0 0 0 0 0 --:--:-- 0:02:09 --:--:-- 0* connect to 199.34.228.74 port 443 failed: Connection timed out
* Failed to connect to www.perlfoundation.org port 443: Connection timed out
0 0 0 0 0 0 0 0 --:--:-- 0:02:10 --:--:-- 0
* Closing connection 0
curl: (28) Failed to connect to www.perlfoundation.org port 443: Connection timed out
➜ ~ curl -I https://www.google.com
HTTP/2 200
date: Sat, 30 Nov 2019 12:37:56 GMT
expires: -1
cache-control: private, max-age=0
content-type: text/html; charset=ISO-8859-1
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
set-cookie: 1P_JAR=2019-11-30-12; expires=Mon, 30-Dec-2019 12:37:56 GMT; path=/; domain=.google.com
set-cookie: NID=192=ycImzE8bh1ygbKtMXDsZPZnNHt79X5GyZc1d2ilCHuZwnoLA7xipx3uUPL2Ozmfynxxa_gr87S2luMC2Is4wJZmDbNDlf4pss9XSU2GpLpE_0YV7wN9I-oA7yPN-LRynJkkvM4yz4LNdhNpap6fHCwHMoajji6rvYHHAY-jkTgQ; expires=Sun, 31-May-2020 12:37:56 GMT; path=/; domain=.google.com; HttpOnly
alt-svc: quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000
accept-ranges: none
vary: Accept-Encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment