[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Detecting KIO::NetAccess::Up/Download failure
From:       Cornelius Schumacher <schumacher () asic ! uni-heidelberg ! de>
Date:       2000-05-21 23:59:44
[Download RAW message or body]

David Faure wrote:
> 
> On Mon, May 22, 2000 at 12:55:22AM +0200, Cornelius Schumacher wrote:
> > At least when using a http URL, KIO::NetAccess::Upload() and
> > KIO::NetAccess::Download() seem to return true for success even when
> > failing. For example when using kedit to open a non-existing file on a
> > http-server it loads the HTML output of the http-server file-not-found
> > error message into the editor.
> >
> > Is there a way to detect if the server returned an error?
> 
> Those two methods should return false in case of error, i.e. if the
> job had an error code. Are you sure it always return true ?
> Can you send me what you get in the app's debug output and in
> ~/.xsession-errors ? (for kio_http's debug output) ?

It returns false, when specifiying a url with an incorrect hostname, but
it returns true, when the hostname is correct but the file was not
found. I sent you the debug output with private mail.

> In any case, I don't see how an upload could work - the command ::put
> on http doesn't quite upload a file :)

So NetAccess::upload() should never return true for http, right?

-- 
Cornelius Schumacher
Kirchhoff-Institut fuer Physik / ASIC Labor
Universitaet Heidelberg
Schroederstrasse 90                      Tel.: ++49 6221 54-4971
D-69120 Heidelberg      mailto:chuebner@ix.urz.uni-heidelberg.de

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic