rust reqwest get(<guardian news story url>) -> 406 Not Acceptable & no body

python requests get(<guardian news story url>) -> 200 OK & body

because reasons i assume.

#rust #python

@VykeTheGreat pretty much that... just get(url) using the 2 libraries, with a url like https://www.theguardian.com/us-news/ng-interactive/2026/apr/10/pete-hegseth-christianity-iran-war-crusade although I've not tested that specific example, as laptop's off atm
Pete Hegseth’s holy war: the militant Christian theology animating the US attack on Iran

The Bible-thumping US defense secretary is overseeing another strategic disaster in the Middle East. Is this a war or a crusade?

The Guardian
@ely_peddler You need to spoof the user-agent... 😐
@michalfita is that documented anywhere?

@ely_peddler Hmm... I'd expect it is.

In The Guardian's internal documentation 😁