[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: please don't say websites "could not be found"!

>>>>> "KY" == Katsumi Yamaoka <yamaoka@xxxxxxx> writes:
KY> Done.  Now emacs-w3m shows for the page in question as:

KY> ,----
KY> | Cannot retrieve URL: https://api.couchsurfing.org
KY> |
KY> | HTTP status: 401 (Unauthorized)
KY> `----

KY> Firefox tries downloading the url and shows the contents if possible,
KY> but emacs-w3m doesn't; currently it shows only the http status and
KY> its meaning in the short form.

Ah ha ha... emacs-w3m already has the extra information from its GET,
but just doesn't show it to the user!

$ GET -PSU  https://api.couchsurfing.org/
GET https://api.couchsurfing.org/
User-Agent: lwp-request/6.03 libwww-perl/6.04

401 Unauthorized
{"error":"Failed to authenticate user, please log in and try again","_headers":{"Etag":"d91e7cb1ebf91bf64f11e3909bbd7d4be2e0ab14","Last-Modified":null}}00:57 1 ~$ 

Even plain w3m -dump shows more:

$ w3m -dump https://api.couchsurfing.org/
{"error":"Failed to authenticate user, please log in and try again","_headers":{

So the question is shouldn't emacs-w3m reveal the extra information from
the GET. I say yes!