Skip to content

Instantly share code, notes, and snippets.

@adisbladis
Created November 29, 2017 18:16
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 adisbladis/ccc6cca83fa9ae7835ba6ef36d842d36 to your computer and use it in GitHub Desktop.
Save adisbladis/ccc6cca83fa9ae7835ba6ef36d842d36 to your computer and use it in GitHub Desktop.
[adisbladis@gari:~]$ nix-shell -p curlFull --run 'curl --compressed -v https://tools.keycdn.com/brotli-test > /dev/null'
% 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 66.228.37.207...
* TCP_NODELAY set
* Trying 2600:3c03::f03c:91ff:fe89:799e...
* TCP_NODELAY set
* Immediate connect fail for 2600:3c03::f03c:91ff:fe89:799e: Network is unreachable
* Connected to tools.keycdn.com (66.228.37.207) port 443 (#0)
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [107 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2913 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [333 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [70 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.keycdn.com
* start date: Aug 31 00:00:00 2016 GMT
* expire date: Aug 31 23:59:59 2019 GMT
* subjectAltName: host "tools.keycdn.com" matched cert's "*.keycdn.com"
* issuer: C=US; O=thawte, Inc.; OU=Domain Validated SSL; CN=thawte DV SSL CA - G2
* SSL certificate verify ok.
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x8bab30)
} [5 bytes data]
> GET /brotli-test HTTP/2
> Host: tools.keycdn.com
> User-Agent: curl/7.57.0
> Accept: */*
> Accept-Encoding: deflate, gzip, br
>
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
< HTTP/2 200
< server: nginx
< date: Wed, 29 Nov 2017 18:15:16 GMT
< content-type: text/html; charset=UTF-8
< vary: Accept-Encoding
< strict-transport-security: max-age=31536000; includeSubdomains; preload
< content-security-policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' opensource.keycdn.com tools-7.kxcdn.com maps.googleapis.com www.google-analytics.com; connect-src 'self'; img-src 'self' cdn.keycdn.com tools-7.kxcdn.com csi.gstatic.com maps.gstatic.com maps.googleapis.com www.google-analytics.com; style-src 'self' 'unsafe-inline' opensource.keycdn.com tools-7.kxcdn.com fonts.googleapis.com; font-src 'self' opensource.keycdn.com tools-7.kxcdn.com fonts.gstatic.com;
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
< content-encoding: br
<
{ [4252 bytes data]
100 4252 0 4252 0 0 4252 0 --:--:-- 0:00:01 --:--:-- 2132
* Connection #0 to host tools.keycdn.com left intact
[adisbladis@gari:~]$ nix-shell -p curlFull --run 'ldd /run/current-system/sw/bin/curl'
linux-vdso.so.1 (0x00007fff934bc000)
libcurl.so.4 => /nix/store/3a3i1qiqc3q45nkzm4iwn45qk8k7iqwa-curl-7.57.0/lib/libcurl.so.4 (0x00007f7bb12de000)
libssl.so.1.0.0 => /nix/store/5s6dbprxcq20y5hqdbvk25avbq08l9ib-openssl-1.0.2m/lib/libssl.so.1.0.0 (0x00007f7bb1070000)
libcrypto.so.1.0.0 => /nix/store/5s6dbprxcq20y5hqdbvk25avbq08l9ib-openssl-1.0.2m/lib/libcrypto.so.1.0.0 (0x00007f7bb0c35000)
libz.so.1 => /nix/store/bn49v6q2rr3b7zvdgkbpsh9zagswfird-zlib-1.2.11/lib/libz.so.1 (0x00007f7bb0a1e000)
libc.so.6 => /nix/store/asz8g320r00flkzr1biyh83hr3faqxna-glibc-2.26-75/lib/libc.so.6 (0x00007f7bb066b000)
libnghttp2.so.14 => /nix/store/21d9ybp0smf7mq99gbpkv0h2rs2b98sn-nghttp2-1.24.0-lib/lib/libnghttp2.so.14 (0x00007f7bb0445000)
libssh2.so.1 => /nix/store/m96jryv6spjgzzjcnf1g46w9axn0wlyr-libssh2-1.8.0/lib/libssh2.so.1 (0x00007f7bb0217000)
libgss.so.3 => /nix/store/cikqzrclcp5x1nnf990wsx8k967yga19-gss-1.0.3/lib/libgss.so.3 (0x00007f7bb000b000)
libldap-2.4.so.2 => /nix/store/kz6y7g10f6sfmmcy2f77817fl0af6vk3-openldap-2.4.45/lib/libldap-2.4.so.2 (0x00007f7bafdc1000)
libbrotlidec.so.1.0.1 => /nix/store/i0xk4zzs4czzyz87qd388dmcarkakra2-brotli-1.0.1/lib/libbrotlidec.so.1.0.1 (0x00007f7bafbb5000)
liblber-2.4.so.2 => /nix/store/kz6y7g10f6sfmmcy2f77817fl0af6vk3-openldap-2.4.45/lib/liblber-2.4.so.2 (0x00007f7baf9a6000)
libpthread.so.0 => /nix/store/asz8g320r00flkzr1biyh83hr3faqxna-glibc-2.26-75/lib/libpthread.so.0 (0x00007f7baf788000)
libdl.so.2 => /nix/store/asz8g320r00flkzr1biyh83hr3faqxna-glibc-2.26-75/lib/libdl.so.2 (0x00007f7baf584000)
/nix/store/asz8g320r00flkzr1biyh83hr3faqxna-glibc-2.26-75/lib/ld-linux-x86-64.so.2 => /nix/store/dps6gpjd9vmjylqgjhdbw6kyxfbfssn7-glibc-2.26-75/lib64/ld-linux-x86-64.so.2 (0x00007f7bb1564000)
libshishi.so.0 => /nix/store/w2m4sci97jkl1rkk8gsi2kkfrpmxqfy1-shishi-1.0.2/lib/libshishi.so.0 (0x00007f7baf324000)
libresolv.so.2 => /nix/store/asz8g320r00flkzr1biyh83hr3faqxna-glibc-2.26-75/lib/libresolv.so.2 (0x00007f7baf10e000)
libsasl2.so.3 => /nix/store/k7lrp5ygjq5r56r8mncpz5qavpyhvbpr-cyrus-sasl-2.1.26/lib/libsasl2.so.3 (0x00007f7baeef1000)
libm.so.6 => /nix/store/asz8g320r00flkzr1biyh83hr3faqxna-glibc-2.26-75/lib/libm.so.6 (0x00007f7baeba5000)
libbrotlicommon.so.1.0.1 => /nix/store/i0xk4zzs4czzyz87qd388dmcarkakra2-brotli-1.0.1/lib/libbrotlicommon.so.1.0.1 (0x00007f7bae985000)
libtasn1.so.6 => /nix/store/dxivcl1ja8mc00jhr0fsm63cxmdasnqb-libtasn1-4.12/lib/libtasn1.so.6 (0x00007f7bae772000)
libgnutls.so.30 => /nix/store/05b4gaqi1qwcbvw1lkx6xh4gpd56gmvv-gnutls-3.6.1/lib/libgnutls.so.30 (0x00007f7bae417000)
libgcrypt.so.20 => /nix/store/5kl3b8r6529igygcg5ahfiqyvrj7blj8-libgcrypt-1.8.1/lib/libgcrypt.so.20 (0x00007f7bae0fa000)
libgpg-error.so.0 => /nix/store/5xg0rqpp1g3q1b67ail0lnlppiy6zw4w-libgpg-error-1.27/lib/libgpg-error.so.0 (0x00007f7badee5000)
libidn.so.11 => /nix/store/5w24pdmcx2dca0i8w1vnm6a2n61c40nr-libidn-1.33/lib/libidn.so.11 (0x00007f7badcb1000)
libp11-kit.so.0 => /nix/store/brj9m740ridj46gmg3216xhxm7x3zvpb-p11-kit-0.23.7/lib/libp11-kit.so.0 (0x00007f7bad980000)
libunistring.so.2 => /nix/store/a1lz5bbzbz6zpz9add7kswckdl90qr8a-libunistring-0.9.7/lib/libunistring.so.2 (0x00007f7bad610000)
libnettle.so.6 => /nix/store/qfm1wg2nyqby0g8qrg10b8rr72hdvfzw-nettle-3.4/lib/libnettle.so.6 (0x00007f7bad3d8000)
libhogweed.so.4 => /nix/store/qfm1wg2nyqby0g8qrg10b8rr72hdvfzw-nettle-3.4/lib/libhogweed.so.4 (0x00007f7bad1a2000)
libgmp.so.10 => /nix/store/lamz5c9c5pydmgmqgwf35bax3286qkyg-gmp-6.1.2/lib/libgmp.so.10 (0x00007f7bacf0f000)
libffi.so.6 => /nix/store/h7b5s3f86apshv9907sjwbs5qc67arqc-libffi-3.2.1/lib/../lib64/libffi.so.6 (0x00007f7bacd06000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment