if you run

curl -v https://standards-oui.ieee.org/oui/oui.txt -H 'User-Agent: Python-urllib/2.6'

then the Institute of Electrical and Electronical Engineers tells you that it is a teapot.

@whitequark works with `--head` as well

neat

@whitequark I was gonna say that it seems like it does this for any UA containing 'urllib' but actually it seems to give me 200 sometimes and 418 other times

maybe there's a load balancer in front of the teapot?

@SnoopJ i solved it by inserting a random integer into the user agent
@whitequark oh was something beefing it on the 418 because it's a 4xx code? guess that stands to reason
@whitequark the apparent sensitivity to urllib makes me think it's related to scrapers but what the heck, this is such a fascinating little quirk you've come across here