Skip to content

Instantly share code, notes, and snippets.

@clovisd
Last active July 23, 2020 06:56
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 clovisd/b24d2b0fe44488fd30c508bcb05a1e57 to your computer and use it in GitHub Desktop.
Save clovisd/b24d2b0fe44488fd30c508bcb05a1e57 to your computer and use it in GitHub Desktop.
Curl output
clovisd@Server:~$ curl -v http://ci.domain.com
* Rebuilt URL to: http://ci.domain.com/
* Trying 2606:4700:3033::ac43:be5f...
* TCP_NODELAY set
* Connected to ci.domain.com (2606:4700:3033::ac43:be5f) port 80 (#0)
> GET / HTTP/1.1
> Host: ci.domain.com
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Thu, 23 Jul 2020 05:32:00 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 17
< Connection: keep-alive
< Set-Cookie: __cfduid=da5de7cd58c54ec07637c69a7f116cf601595482320; expires=Sat, 22-Aug-20 05:32:00 GMT; path=/; domain=.domain.com; HttpOnly; SameSite=Lax
< Location: https://ci.domain.com/
< CF-Cache-Status: DYNAMIC
< cf-request-id: 041bc146440000176689128200000001
< Server: cloudflare
< CF-RAY: 5b7304b6db481766-FRA
<
* Connection #0 to host ci.domain.com left intact
clovisd@Server:~$ curl -v https://ci.domain.com
* Rebuilt URL to: https://ci.domain.com/
* Trying 2606:4700:3034::6812:308e...
* TCP_NODELAY set
* Connected to ci.domain.com (2606:4700:3034::6812:308e) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS Unknown, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Unknown (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Client hello (1):
* TLSv1.3 (OUT), TLS Unknown, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
* start date: Jul 11 00:00:00 2020 GMT
* expire date: Jul 11 12:00:00 2021 GMT
* subjectAltName: host "ci.domain.com" matched cert's "*.domain.com"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* 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
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* Using Stream ID: 1 (easy handle 0x5600c2b8e580)
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
> GET / HTTP/2
> Host: ci.domain.com
> User-Agent: curl/7.58.0
> Accept: */*
>
* TLSv1.3 (IN), TLS Unknown, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
* TLSv1.3 (OUT), TLS Unknown, Unknown (23):
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
< HTTP/2 301
< date: Thu, 23 Jul 2020 05:33:43 GMT
< content-type: text/plain; charset=utf-8
< content-length: 17
< set-cookie: __cfduid=d9554feef8d3bbdc7125320e54f22e3a61595482423; expires=Sat, 22-Aug-20 05:33:43 GMT; path=/; domain=.domain.com; HttpOnly; SameSite=Lax
< location: https://ci.domain.com/
< cf-cache-status: DYNAMIC
< cf-request-id: 041bc2da030000325c5d029200000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< server: cloudflare
< cf-ray: 5b73073cdda1325c-FRA
<
* TLSv1.3 (IN), TLS Unknown, Unknown (23):
* Connection #0 to host ci.domain.com left intact
Moved Permanently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment