is there any reason to use md5? (apart from backward compatibility etc.)
httpdiff – diff responses to two HTTP/HTTPS requests
21–30 of 41 posts
Re: httpdiff – diff responses to two HTTP/HTTPS requests
#22Perfect use case for Go.
Re: httpdiff – diff responses to two HTTP/HTTPS requests
#23The Unix way: diff &1) &1) As a shell function: httpdiff () { diff &1) &1) } httpdiff https://news.ycombinator.com/ https://news.ycombinator.com/
Which works well for that one example. But not others. diff &1) &1) On my machine that produces 33k of output. I like one liners and using the shell, but this tool was built not for fun because I was debugging things that were painful.
$ diff -y -W $COLUMNS &1) &1)
Edit: furthermore, with curl you can use options like -b, -c, -d, which would all have to be reimplemented in your system.Re: httpdiff – diff responses to two HTTP/HTTPS requests
#24Re: httpdiff – diff responses to two HTTP/HTTPS requests
#25The Unix way: diff &1) &1) As a shell function: httpdiff () { diff &1) &1) } httpdiff https://news.ycombinator.com/ https://news.ycombinator.com/
Which works well for that one example. But not others. diff &1) &1) On my machine that produces 33k of output. I like one liners and using the shell, but this tool was built not for fun because I was debugging things that were painful.
Re: httpdiff – diff responses to two HTTP/HTTPS requests
#26The Unix way: diff &1) &1) As a shell function: httpdiff () { diff &1) &1) } httpdiff https://news.ycombinator.com/ https://news.ycombinator.com/
"Those who don't understand Unix are condemned to reinvent it, poorly." – Henry Spencer
Re: httpdiff – diff responses to two HTTP/HTTPS requests
#27The Unix way: diff &1) &1) As a shell function: httpdiff () { diff &1) &1) } httpdiff https://news.ycombinator.com/ https://news.ycombinator.com/
Came here to say similar. "Those who don't understand Unix are condemned to reinvent it, poorly." – Henry Spencer
Re: httpdiff – diff responses to two HTTP/HTTPS requests
#28Earlier quoted context omitted.
Came here to say similar. "Those who don't understand Unix are condemned to reinvent it, poorly." – Henry Spencer
There's this thing called ux... John's program has a nice one, diff and curl and bash (used together in the way indicated here) have a terrible one.
Re: httpdiff – diff responses to two HTTP/HTTPS requests
#29Re: httpdiff – diff responses to two HTTP/HTTPS requests
#30Why not just write this as a bash one-liner? function httpdiff { diff