|
|
|
|
|
by dxuh
1430 days ago
|
|
In these comments people have suggested to check for the User-Agent, but wouldn't it make more sense to check if the Accept header mentions text/html? I realize that curl sends "Accept: /", but if you wanted to see a page in plain text, you would have to pass -H "Accept: text/plain". I think that uses HTTP much more like it was intended. |
|
[1]: https://sr.ht/~mort/coffeepaste/