Skip to content

Instantly share code, notes, and snippets.

@wenzowski
Created April 20, 2013 03:20
Show Gist options
  • Save wenzowski/5424598 to your computer and use it in GitHub Desktop.
Save wenzowski/5424598 to your computer and use it in GitHub Desktop.
it shouldn't be failing...but it is
$ time curl -I http://rvm.io/binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2 --trace-time --trace-ascii -
23:17:04.488093 == Info: About to connect() to rvm.io port 80 (#0)
23:17:04.488482 == Info: Trying 208.85.148.213...
23:17:04.568784 == Info: connected
23:17:04.568858 == Info: Connected to rvm.io (208.85.148.213) port 80 (#0)
23:17:04.568996 => Send header, 186 bytes (0xba)
0000: HEAD /binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2 HTTP/1.1
0041: User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0
0081: OpenSSL/0.9.8r zlib/1.2.5
009d: Host: rvm.io
00ab: Accept: */*
00b8:
23:17:04.648432 <= Recv header, 32 bytes (0x20)
0000: HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
23:17:04.648515 <= Recv header, 21 bytes (0x15)
0000: Server: nginx/1.2.7
Server: nginx/1.2.7
23:17:04.648550 <= Recv header, 37 bytes (0x25)
0000: Date: Sat, 20 Apr 2013 03:17:04 GMT
Date: Sat, 20 Apr 2013 03:17:04 GMT
23:17:04.648589 <= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
Content-Type: text/html
23:17:04.648623 <= Recv header, 21 bytes (0x15)
0000: Content-Length: 184
Content-Length: 184
23:17:04.648764 <= Recv header, 24 bytes (0x18)
0000: Connection: keep-alive
Connection: keep-alive
23:17:04.648807 <= Recv header, 75 bytes (0x4b)
0000: Location: https://rvm.io/binaries/ubuntu/12.04/i386/ruby-2.0.0-p
0040: 0.tar.bz2
Location: https://rvm.io/binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2
23:17:04.648858 <= Recv header, 2 bytes (0x2)
0000:
23:17:04.648885 == Info: Connection #0 to host rvm.io left intact
23:17:04.648924 == Info: Closing connection #0
curl -I http://rvm.io/binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2 - 0.01s user 0.01s system 0% cpu 5.194 total
$ time curl --connect-timeout 5 -I http://rvm.io/binaries/ubuntu/12.04/i386/ruby-2.0.0-p0.tar.bz2 --trace-time --trace-ascii -
23:18:11.966659 == Info: About to connect() to rvm.io port 80 (#0)
23:18:11.967045 == Info: Connection time-out
23:18:11.967062 == Info: Closing connection #0
curl: (28) Connection time-out
curl --connect-timeout 5 -I --trace-time --trace-ascii - 0.01s user 0.01s system 0% cpu 5.036 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment