[Pkg-phototools-devel] Bug#657173: URL returned error: 404... but say what the error was
derf at finalrewind.org
Wed Jan 25 12:47:05 UTC 2012
On Wed, Jan 25, 2012 at 12:27:37AM +0800, jidanni at jidanni.org wrote:
> Why don't you tell the user what the error message was?!
Because libcurl does not easily tell me, either.
I could write a custom header function to parse the non-number part out of the
status message, but I don't see why it's worth the effort.
> Some 404s are different than others!
Only in very special cases.
"HTTP 404" means file not found. As far as I know, HTTP Clients are not even
required to read the non-number part of that status line... at least most I know
don't care about it.
I see that WWWOffle is an exception to this, but wouldn't it be easier to make
it return a different status code for "I am offline and don't know if this
file exists or not"? 404 for unkown content seems somewhat ambiguous to me.
I may reconsider this later, but for now I won't add more precise status reports
to feh/curl. feh is not a web browser, the http support is more of a convenience
so you don't have to call wget && feh.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: Digital signature
More information about the Pkg-phototools-devel