3 ms·
Actually this is closer still to the output. Requires colordiff: diff -u <(curl -sS -D - -L https://httpbin.org/get https://httpbin.org/get) <(curl -sS -D - -L
by jalfresi 11y ago
Actually this is closer still to the output. Requires colordiff:
diff -u <(curl -sS -D - -L https://httpbin.org/get https://httpbin.org/get) <(curl -sS -D - -L https://httpbin.org/get?show_env=1 https://httpbin.org/get?show_env=1) | colordiff
- Aissen 11y agoYou can replace colordiff with vim's less tool (/usr/share/vim/vim74/macros/less.sh ) or vimpager (https://github.com/rkitover/vimpager https://github.com/rkitover/vimpager). icdiff is also nice to have a side-by-side colored diff (https://github.com/jeffkaufman/icdiff https://github.com/jeffkaufman/icdiff). And of course, you could use meld, vimdiff, kompare etc. with the same bash anonymous pipes indirection.
- dgulino 11y agoyou can leave off the pipe: colordiff -u <(curl -sS -D - -L https://httpbin.org/get https://httpbin.org/get) <(curl -sS -D - -L https://httpbin.org/get?show_env=1 https://httpbin.org/get?show_env=1)