Properties

Last built 2 years ago using go version go1.5.1 linux/amd64 and 57 seconds of time

Downloads
Filename
File Size
 
rcode_master_darwin-386.zip
1.9MiB
rcode_master_darwin-amd64.zip
2.0MiB
rcode_master_linux-386.zip
1.9MiB
rcode_master_linux-amd64.zip
2.0MiB
rcode_master_linux-arm.zip
1.8MiB
rcode_master_windows-386.zip
1.9MiB
rcode_master_windows-amd64.zip
2.0MiB
Project-Readme for this version

Response Code Chain Checker

The rcode CLI lets you see the raw response code and, if applicable, the redirect chain of a URL. It ends if the response code is 200 OK.

Installation

Assuming you have a working Go environment and GOPATH/bin is in your PATH, install rcode with

$ go get github.com/mxlje/rcode

Alternatively you can grab the latest compiled version from the releases section on GitHub and put it in your PATH by hand.

Usage

$ rcode http://miele.de
[301] http://miele.de
[200] http://www.miele.de/haushalt/index.htm

httpbin.org is a great service to test redirect chains:

$ rcode httpbin.org/redirect/2
[302] http://httpbin.org/redirect/2
[302] http://httpbin.org/redirect/1
[200] http://httpbin.org/get

CSV Output

Useful for further analysis.

$ rcode httpbin.org/redirect/1 --csv
302,http://httpbin.org/redirect/1
200,http://httpbin.org/get

License

See the LICENSE file for license info (it’s the MIT license).