Created
September 10, 2017 10:13
-
-
Save iogi/36ae6c454d56710de903e3db65f87939 to your computer and use it in GitHub Desktop.
curl --connect-to
This file contains 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
curl -v --silent --location --connect-to "reponame.example.jp::dxxxxxxxxxxxxx.cloudfront.net:" http://reponame.example.jp/ > /dev/null | |
* Connecting to hostname: dxxxxxxxxxxxxx.cloudfront.net | |
* Trying 13.32.230.25... | |
* TCP_NODELAY set | |
* Connected to dxxxxxxxxxxxxx.cloudfront.net (13.32.230.25) port 80 (#0) | |
> GET / HTTP/1.1 | |
> Host: reponame.example.jp | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 301 Moved Permanently | |
< Server: CloudFront | |
< Date: Sun, 10 Sep 2017 10:06:49 GMT | |
< Content-Type: text/html | |
< Content-Length: 183 | |
< Connection: keep-alive | |
< Location: https://reponame.example.jp/ | |
< X-Cache: Redirect from cloudfront | |
< Via: 1.1 78dc5acc7fb7b026e9215d8188becd98.cloudfront.net (CloudFront) | |
< X-Amz-Cf-Id: ymg3bDg7MThc2VVOuIpOC3r42GyuRDXJUS0HnB9cKnWWTnRjWD-e_g== | |
< | |
* Ignoring the response-body | |
{ [183 bytes data] | |
* Connection #0 to host dxxxxxxxxxxxxx.cloudfront.net left intact | |
* Issue another request to this URL: 'https://reponame.example.jp/' | |
* Connecting to hostname: dxxxxxxxxxxxxx.cloudfront.net | |
* Trying 13.32.230.25... | |
* TCP_NODELAY set | |
* Connected to dxxxxxxxxxxxxx.cloudfront.net (13.32.230.25) port 443 (#1) | |
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | |
* Server certificate: reponame.exmple.com | |
* Server certificate: Amazon | |
* Server certificate: Amazon Root CA 1 | |
* Server certificate: Starfield Services Root Certificate Authority - G2 | |
> GET / HTTP/1.1 | |
> Host: reponame.example.jp | |
> User-Agent: curl/7.54.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< Content-Type: text/html; charset=utf-8 | |
< Content-Length: 18280 | |
< Connection: keep-alive | |
< Server: GitHub.com | |
< Last-Modified: Sat, 09 Sep 2017 13:30:08 GMT | |
< Access-Control-Allow-Origin: * | |
< Expires: Sun, 10 Sep 2017 10:04:44 GMT | |
< Cache-Control: max-age=600 | |
< X-GitHub-Request-Id: F24E:8856:173BB3:19374E:59B50BE4 | |
< Accept-Ranges: bytes | |
< Date: Sun, 10 Sep 2017 09:54:44 GMT | |
< Via: 1.1 varnish, 1.1 45b893b1fe0ecafde6bfa63bc4abc859.cloudfront.net (CloudFront) | |
< X-Served-By: cache-nrt6125-NRT | |
< X-Cache-Hits: 0 | |
< X-Timer: S1505037284.497836,VS0,VE232 | |
< X-Fastly-Request-ID: 27614a7c60d3bb6edab88b25f86c9a21cc4b3899 | |
< Vary: Accept-Encoding | |
< Age: 92 | |
< X-Cache: Hit from cloudfront | |
< X-Amz-Cf-Id: My_BZNmrPJFeHIZsTST_5gc5A5jvk7XXVSdErVcAxhvxtfUAVud4PQ== | |
< | |
{ [15630 bytes data] | |
* Connection #1 to host dxxxxxxxxxxxxx.cloudfront.net left intact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment