Search
Items tagged with: RegEx
#curl sometimes fails to access some servers. In most situations the problem is not in curl itself but on the server side. Example:
1. Fails: curl https://www.radissonhotels.com
2. Works: curl -A 'Mozilla/5.0 xx Chrome/119' https://www.radissonhotels.com
3. Fails: curl -A 'Mozilla/5.0 xx Chrome/118' https://www.radissonhotels.com
4. Fails, too: curl -A 'Mozilla/5.0 xx Chrome/1189' https://www.radissonhotels.com
Perhaps they perform #filtering to obtain improved #security? It's hard to tell, but any serious attacker surely knows how to spoof the user agent string and bypass such simple #regex
(This is a rant because I'm exhausted after debugging something. If you've made RegEx your whole personality, I'm sorry.) The other day I had to fix a multi-line Regular Expression (RegEx). After a few hours of peering at…
👀 Read more: https://shkspr.mobi/blog/2023/02/regular-expressions-make-me-feel-like-a-powerful-wizard-and-thats-not-a-good-thing/
⸻
#ComputerScience #programming #regex
Regular Expressions make me feel like a powerful wizard - and that's not a good thing
(This is a rant because I’m exhausted after debugging something. If you’ve made RegEx your whole personality, I’m sorry.) The other day I had to fix a multi-line Regular Expressio…Terence Eden’s Blog