Skip to content

Instantly share code, notes, and snippets.

@joneskoo
Created April 2, 2016 19:01
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 joneskoo/924586cd853e0b2063aa6d6bd51f3e0a to your computer and use it in GitHub Desktop.
Save joneskoo/924586cd853e0b2063aa6d6bd51f3e0a to your computer and use it in GitHub Desktop.
[joneskoo@grant ~]$ /usr/local/Cellar/curl/7.48.0/bin/curl -v --http2 https://http2.golang.org/'[1-4]'
[1/4]: https://http2.golang.org/1 --> <stdout>
* Trying 130.211.116.44...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to http2.golang.org (130.211.116.44) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /usr/local/etc/openssl/cert.pem
CApath: none
* 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):
{ [58 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2185 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-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=http2.golang.org
* start date: Nov 13 18:52:09 2015 GMT
* expire date: Nov 12 00:00:00 2016 GMT
* subjectAltName: host "http2.golang.org" matched cert's "http2.golang.org"
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x7fac8100de00)
} [5 bytes data]
> GET /1 HTTP/1.1
> Host: http2.golang.org
> User-Agent: curl/7.48.0
> Accept: */*
>
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0< HTTP/2.0 404
< content-type:text/plain; charset=utf-8
< x-content-type-options:nosniff
< content-length:19
< date:Sat, 02 Apr 2016 19:01:03 GMT
<
{ [5 bytes data]
100 19 100 19 0 0 26 0 --:--:-- --:--:-- --:--:-- 26
* Connection #0 to host http2.golang.org left intact
--_curl_--https://http2.golang.org/1
404 page not found
[2/4]: https://http2.golang.org/2 --> <stdout>
* Found bundle for host http2.golang.org: 0x7fac80c27fb0 [can multiplex]
* Hostname http2.golang.org was found in DNS cache
* Trying 130.211.116.44...
* Connected to http2.golang.org (130.211.116.44) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /usr/local/etc/openssl/cert.pem
CApath: none
* SSL re-using session ID
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [58 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2185 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-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* old SSL session ID is stale, removing
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=http2.golang.org
* start date: Nov 13 18:52:09 2015 GMT
* expire date: Nov 12 00:00:00 2016 GMT
* subjectAltName: host "http2.golang.org" matched cert's "http2.golang.org"
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x7fac8100de00)
} [5 bytes data]
> GET /2 HTTP/1.1
> Host: http2.golang.org
> User-Agent: curl/7.48.0
> Accept: */*
>
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
< HTTP/2.0 404
< content-type:text/plain; charset=utf-8
< x-content-type-options:nosniff
< content-length:19
< date:Sat, 02 Apr 2016 19:01:03 GMT
<
{ [5 bytes data]
100 19 100 19 0 0 26 0 --:--:-- --:--:-- --:--:-- 26
* Connection #1 to host http2.golang.org left intact
--_curl_--https://http2.golang.org/2
404 page not found
[3/4]: https://http2.golang.org/3 --> <stdout>
* Found bundle for host http2.golang.org: 0x7fac80c27fb0 [can multiplex]
* Hostname http2.golang.org was found in DNS cache
* Trying 130.211.116.44...
* Connected to http2.golang.org (130.211.116.44) port 443 (#2)
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
* successfully set certificate verify locations:
* CAfile: /usr/local/etc/openssl/cert.pem
CApath: none
* SSL re-using session ID
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [58 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2185 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-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* old SSL session ID is stale, removing
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=http2.golang.org
* start date: Nov 13 18:52:09 2015 GMT
* expire date: Nov 12 00:00:00 2016 GMT
* subjectAltName: host "http2.golang.org" matched cert's "http2.golang.org"
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x7fac8100de00)
} [5 bytes data]
> GET /3 HTTP/1.1
> Host: http2.golang.org
> User-Agent: curl/7.48.0
> Accept: */*
>
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
< HTTP/2.0 404
< content-type:text/plain; charset=utf-8
< x-content-type-options:nosniff
< content-length:19
< date:Sat, 02 Apr 2016 19:01:04 GMT
<
{ [5 bytes data]
100 19 100 19 0 0 26 0 --:--:-- --:--:-- --:--:-- 36
* Connection #2 to host http2.golang.org left intact
--_curl_--https://http2.golang.org/3
404 page not found
[4/4]: https://http2.golang.org/4 --> <stdout>
* Found bundle for host http2.golang.org: 0x7fac80c27fb0 [can multiplex]
* Hostname http2.golang.org was found in DNS cache
* Trying 130.211.116.44...
* Connected to http2.golang.org (130.211.116.44) port 443 (#3)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /usr/local/etc/openssl/cert.pem
CApath: none
* SSL re-using session ID
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [58 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2185 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]
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* old SSL session ID is stale, removing
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=http2.golang.org
* start date: Nov 13 18:52:09 2015 GMT
* expire date: Nov 12 00:00:00 2016 GMT
* subjectAltName: host "http2.golang.org" matched cert's "http2.golang.org"
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* TCP_NODELAY set
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x7fac8100de00)
} [5 bytes data]
> GET /4 HTTP/1.1
> Host: http2.golang.org
> User-Agent: curl/7.48.0
> Accept: */*
>
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
} [5 bytes data]
< HTTP/2.0 404
< content-type:text/plain; charset=utf-8
< x-content-type-options:nosniff
< content-length:19
< date:Sat, 02 Apr 2016 19:01:05 GMT
<
{ [5 bytes data]
100 19 100 19 0 0 25 0 --:--:-- --:--:-- --:--:-- 103
* Connection #3 to host http2.golang.org left intact
--_curl_--https://http2.golang.org/4
404 page not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment