Live data from Hacker News

httpdiff – diff responses to two HTTP/HTTPS requests

github.com

21–30 of 41 posts

Re: httpdiff – diff responses to two HTTP/HTTPS requests

#21
post #20

is there any reason to use md5? (apart from backward compatibility etc.)

It doesn't really make a difference in a case like this. Though certainly not an ideal algorithm, the chance of a collision for something like this is low enough to never be a concern.

Re: httpdiff – diff responses to two HTTP/HTTPS requests

#23

The 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

#25

The 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.

If you're worried about paging, you could always just pipe it to less, or if you still wanted colors you could swap out diff for vimdiff. Nice tool, though.

Re: httpdiff – diff responses to two HTTP/HTTPS requests

#26

The 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

#27

The 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

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

#28
post #27

Earlier 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.

[deleted]
Post reply on HN