3 ms·
For command-line junkies: diff <(curl -sS -L https://httpbin.org/get https://httpbin.org/get) <(curl -sS -L https://httpbin.org/get?show_env=1 https://httpbin.
by jalfresi 11y ago
For command-line junkies:
diff <(curl -sS -L https://httpbin.org/get https://httpbin.org/get) <(curl -sS -L https://httpbin.org/get?show_env=1 https://httpbin.org/get?show_env=1)
- jalfresi 11y agoActually 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)
- tacone 11y agoThe website does show differences in the HTTP headers though.
- Tepix 11y agoAs does this solution.