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

Re: [gopher] Correct error handling



On Thu, 10 May 2012, 06:01:25 EEST, Driedfruit <driedfruit@mindloop.net> wrote:

> It seems to me, that servers either return errors via gopher menus,
> either as plain-text. Is that behavior correct?
> 
> gopher://floodgap.com/0/non-existant-path
> gopher://floodgap.com/1/non-existant-path
> 
> Plain-text files couldn't be parsed as gopher menus and vice versa, so
> in either case the resulting output is flawed. Yet the response for the
> 2 queries above is the same.
> 
> So what's the deal here?

The server doesn't know what filetype the client is requesting (it's not part of the request string). Gophernicus tries to guess, sometimes correctly, while most other servers won't even try (which really isn't any worse, just different).

Gopher errors are just broken, plain and simple.

- Kim



_______________________________________________
Gopher-Project mailing list
Gopher-Project@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/gopher-project




Reply to: