logoalt Hacker News

jayknight • today at 8:07 PM • 1 reply • view on HN

>If you were just trying to download the original HTML version of this page, add -H "X-Original: true" to the curl command to have the server respond exactly how it would've to any non-curl HTTP client.

It seems like "Accept: text/html" would be more standard

https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/...

... and then use `text/x-ansi` as the curl version, so other text-based clients could also fetch it:

wget -O - --header='Accept: text/x-ansi' nytpu.com/gemlog/2026-03-18

See: https://www.digipres.org/formats/sources/wikidata/formats/#q...


Replies

lightandlight • today at 8:57 PM

Yeah, I like this more. I want curl/wget to get the canonical representation by default.