Skip to content

Instantly share code, notes, and snippets.

@xxdesmus
Created May 25, 2014 01:43
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 xxdesmus/310e97d4262baaa720c8 to your computer and use it in GitHub Desktop.
Save xxdesmus/310e97d4262baaa720c8 to your computer and use it in GitHub Desktop.
==================
Request over IPv4
==================
curl -v -k -4 https://cdntest.org:8443/
* Adding handle: conn: 0x7fc21100c400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fc21100c400) send_pipe: 1, recv_pipe: 0
* About to connect() to cdntest.org port 8443 (#0)
* Trying 93.93.131.187...
* Connected to cdntest.org (93.93.131.187) port 8443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
* Server certificate: Internet Widgits Pty Ltd
> GET / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: cdntest.org:8443
> Accept: */*
>
< HTTP/1.1 502 Bad Gateway
* Server nghttpx nghttp2/0.5.0-DEV is not blacklisted
< Server: nghttpx nghttp2/0.5.0-DEV
< Content-Length: 154
< Content-Type: text/html; charset=UTF-8
<
* Connection #0 to host cdntest.org left intact
<html><head><title>502 Bad Gateway</title></head><body><h1>502 Bad Gateway</h1><hr><address>nghttpx nghttp2/0.5.0-DEV at port 8443</address></body></html>
========================
Same request over IPv6
========================
curl -v -k -6 https://cdntest.org:8443/
* Adding handle: conn: 0x7f9f4c80c400
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f9f4c80c400) send_pipe: 1, recv_pipe: 0
* About to connect() to cdntest.org port 8443 (#0)
* Trying 2a00:1098::86:1000:30:0:1...
* Failed connect to cdntest.org:8443; Connection refused
* Closing connection 0
curl: (7) Failed connect to cdntest.org:8443; Connection refused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment