Skip to content

Instantly share code, notes, and snippets.

@euphoria
Created June 20, 2016 16:35
Show Gist options
  • Save euphoria/5c6d6d4094aaf65e740c4c4da5cca1b5 to your computer and use it in GitHub Desktop.
Save euphoria/5c6d6d4094aaf65e740c4c4da5cca1b5 to your computer and use it in GitHub Desktop.
# With curl (and web browsers), we hit the backend and it redirects us successfully.
$ curl -v https://gitlab.tradeforecaster.com/
* About to connect() to gitlab.tradeforecaster.com port 443 (#0)
* Trying 192.168.153.203... connected
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server key exchange (12):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using ECDHE-RSA-AES128-GCM-SHA256
* Server certificate:
* subject: CN=gitlab.tradeforecaster.com
* start date: 2016-06-03 19:31:00 GMT
* expire date: 2016-09-01 19:31:00 GMT
* subjectAltName: gitlab.tradeforecaster.com matched
* issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
* SSL certificate verify ok.
> 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
> Host: gitlab.tradeforecaster.com
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: nginx
< Date: Mon, 20 Jun 2016 16:27:05 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 114
< Cache-Control: no-cache
< Location: https://gitlab.tradeforecaster.com/users/sign_in
< Set-Cookie: _gitlab_session=dea652efcd1f3f9a93987770037b3d52; path=/; secure; HttpOnly
< Status: 302 Found
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< X-Request-Id: c84819cc-ad29-449f-80fe-3657a0eba5aa
< X-Runtime: 0.046332
< X-Xss-Protection: 1; mode=block
<
* Connection #0 to host gitlab.tradeforecaster.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
<html><body>You are being <a href="https://gitlab.tradeforecaster.com/users/sign_in">redirected</a>.</body></html>
# With Python's HTTPie, we GET with an HTTP/1.1 but receive an HTTP 1.0 503 :(
$ http -v https://gitlab.tradeforecaster.com/
GET / HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: gitlab.tradeforecaster.com
User-Agent: HTTPie/0.9.3
HTTP/1.0 503 Service Unavailable
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>
# With wget, we also receive a 503 :(
$ wget -v https://gitlab.tradeforecaster.com
--2016-06-20 11:25:52-- https://gitlab.tradeforecaster.com/
Resolving gitlab.tradeforecaster.com (gitlab.tradeforecaster.com)... 192.168.153.203, 192.168.153.202, 192.168.153.201
Connecting to gitlab.tradeforecaster.com (gitlab.tradeforecaster.com)|192.168.153.203|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
2016-06-20 11:25:52 ERROR 503: Service Unavailable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment