Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Using which HTTP client?

To test "correctly", you'd likely want to use the requests library or, at the least, ussend the same User-Agent header that it does.

(And, for all we know, they could just be targeting certain IP addresses... or only responding the "malicious" response the first time the URL is requested per IP... or some other weird conditions that we aren't aware of.)



The packages do nothing with the response from the code i've seen


Ah, I see. I was just using Firefox to test things out; I'm not really experienced with these things but I do know how to use curl to an extent. :D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: