Skip to content

Instantly share code, notes, and snippets.

@mraleph
Created July 9, 2014 13:39
Show Gist options
  • Save mraleph/d42105b23586a16f007f to your computer and use it in GitHub Desktop.
Save mraleph/d42105b23586a16f007f to your computer and use it in GitHub Desktop.
~ ∮ dig cdnjs.com AAAA +short
2400:cb00:2048:1::a29f:f729
2400:cb00:2048:1::a29f:f829
~ ∮ curl -m 20 -v -o /dev/null -s -w "got %{size_download} bytes." -g --header 'Host: cdnjs.com' 'http://[2400:cb00:2048:1::a29f:f829]/'
* About to connect() to 2400:cb00:2048:1::a29f:f829 port 80 (#0)
* Trying 2400:cb00:2048:1::a29f:f829... connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Accept: */*
> Host: cdnjs.com
>
* Operation timed out after 20001 milliseconds with 0 bytes received
* Closing connection #0
got 0 bytes.%
~ ∮ curl -m 20 -v -o /dev/null -s -w "got %{size_download} bytes." -g --header 'Host: cdnjs.com' 'http://[2400:cb00:2048:1::a29f:f729]/'
* About to connect() to 2400:cb00:2048:1::a29f:f729 port 80 (#0)
* Trying 2400:cb00:2048:1::a29f:f729... connected
> GET / HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Accept: */*
> Host: cdnjs.com
>
< HTTP/1.1 200 OK
< Server: cloudflare-nginx
< Date: Wed, 09 Jul 2014 11:53:19 GMT
< Content-Type: text/html; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Set-Cookie: __cfduid=d5c79b54c813870f38e7613fdaba468881404906799940; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.cdnjs.com; HttpOnly
< Cache-Control: public, max-age=7200
< Expires: Wed, 09 Jul 2014 13:53:19 GMT
< Vary: Accept-Encoding
< X-Powered-By: Express
< CF-Cache-Status: HIT
< CF-RAY: 1474520ba7540108-DFW
<
{ [data not shown]
* Connection #0 to host 2400:cb00:2048:1::a29f:f729 left intact
* Closing connection #0
got 1030813 bytes.%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment