Created
July 5, 2018 13:35
-
-
Save jaraco/281ebc1e8c402e06a5941fd7d207159d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jaraco.site master $ curl -v -L -u any:any https://www.jaraco.com/auth-demo/here/ | |
* Trying 2001:4802:7800:1:be76:4eff:fe20:21d9... | |
* TCP_NODELAY set | |
* Connected to www.jaraco.com (2001:4802:7800:1:be76:4eff:fe20:21d9) 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: /etc/ssl/cert.pem | |
CApath: none | |
* TLSv1.2 (OUT), TLS handshake, Client hello (1): | |
* TLSv1.2 (IN), TLS handshake, Server hello (2): | |
* TLSv1.2 (IN), TLS handshake, Certificate (11): | |
* TLSv1.2 (IN), TLS handshake, Server key exchange (12): | |
* TLSv1.2 (IN), TLS handshake, Server finished (14): | |
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16): | |
* TLSv1.2 (OUT), TLS change cipher, Client hello (1): | |
* TLSv1.2 (OUT), TLS handshake, Finished (20): | |
* TLSv1.2 (IN), TLS change cipher, Client hello (1): | |
* TLSv1.2 (IN), TLS handshake, Finished (20): | |
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 | |
* ALPN, server accepted to use http/1.1 | |
* Server certificate: | |
* subject: CN=jaraco.com | |
* start date: May 4 07:46:42 2018 GMT | |
* expire date: Aug 2 07:46:42 2018 GMT | |
* subjectAltName: host "www.jaraco.com" matched cert's "www.jaraco.com" | |
* issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3 | |
* SSL certificate verify ok. | |
* Server auth using Basic with user 'any' | |
> GET /auth-demo/here/ HTTP/1.1 | |
> Host: www.jaraco.com | |
> Authorization: Basic YW55OmFueQ== | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 302 Found | |
< Server: nginx/1.10.3 (Ubuntu) | |
< Date: Thu, 05 Jul 2018 13:33:11 GMT | |
< Content-Type: text/html;charset=utf-8 | |
< Content-Length: 129 | |
< Connection: keep-alive | |
< Location: http://www.jaraco.com/auth-demo/there/ | |
< Set-Cookie: session_id=73af0f62e648876485e8f2179ad02767fdf544b1; expires=Thu, 05 Jul 2018 14:33:11 GMT; Max-Age=3600; Path=/ | |
< | |
* Ignoring the response-body | |
* Connection #0 to host www.jaraco.com left intact | |
* Issue another request to this URL: 'http://www.jaraco.com/auth-demo/there/' | |
* Trying 2001:4802:7800:1:be76:4eff:fe20:21d9... | |
* TCP_NODELAY set | |
* Connected to www.jaraco.com (2001:4802:7800:1:be76:4eff:fe20:21d9) port 80 (#1) | |
* Server auth using Basic with user 'any' | |
> GET /auth-demo/there/ HTTP/1.1 | |
> Host: www.jaraco.com | |
> Authorization: Basic YW55OmFueQ== | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 301 Moved Permanently | |
< Server: nginx/1.10.3 (Ubuntu) | |
< Date: Thu, 05 Jul 2018 13:33:11 GMT | |
< Content-Type: text/html | |
< Content-Length: 194 | |
< Connection: keep-alive | |
< Location: https://www.jaraco.com/auth-demo/there/ | |
< | |
* Ignoring the response-body | |
* Connection #1 to host www.jaraco.com left intact | |
* Issue another request to this URL: 'https://www.jaraco.com/auth-demo/there/' | |
* Found bundle for host www.jaraco.com: 0x7fa06d6178b0 [can pipeline] | |
* Re-using existing connection! (#0) with host www.jaraco.com | |
* Connected to www.jaraco.com (2001:4802:7800:1:be76:4eff:fe20:21d9) port 443 (#0) | |
* Server auth using Basic with user 'any' | |
> GET /auth-demo/there/ HTTP/1.1 | |
> Host: www.jaraco.com | |
> Authorization: Basic YW55OmFueQ== | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> | |
You got there!< HTTP/1.1 200 OK | |
< Server: nginx/1.10.3 (Ubuntu) | |
< Date: Thu, 05 Jul 2018 13:33:11 GMT | |
< Content-Type: text/html;charset=utf-8 | |
< Content-Length: 14 | |
< Connection: keep-alive | |
< Set-Cookie: session_id=71c4cef892fb556023a68bf88ab7e71d7f0bb027; expires=Thu, 05 Jul 2018 14:33:11 GMT; Max-Age=3600; Path=/ | |
< | |
* Connection #0 to host www.jaraco.com left intact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment