News for hackers. Stuff that matters.
Re:ZA̡͊͠͝LGΌ causes "Invalid MD5 checksum on messages" by hakfoo on Sunday May 09, 2021 @02:07AM (#27093642)
One of the situations I've seen is roughly: System is up: returns XML or JSON or pretty-format-of-the-week System is down: It returns a HTML IIS error page.

In the second case, all you might want is to extract the content of the first <h1> tag out of that error page. That's predictable enough of a task that a Regex might be able to handle it, especially if at that point you've already iven up on a full success and you're just salvaging a prettier error message than "system error".

Re:ZA̡͊͠͝LGΌ causes "Invalid MD5 checksum on messages" by yarcob on Monday May 10, 2021 @02:13AM (#27103218)
Exactly. In cases like this using an HTML/XML parser instead of a regular expression won't make a difference at all.