[Interest] Debugging tip for QNetworkReply

Thiago Macieira thiago.macieira at intel.com
Fri May 2 23:04:41 CEST 2014

Em sex 02 maio 2014, às 10:45:16, Jason Kretzer escreveu:
> I am using the following code to download zip files from a url.  The only
> thing that changes is the “id” in the url(one for each zip).  Anyway, the
> code always works on one of the zip files, but never works on the
> other.  Both zips are on the server.  Both zips are downloadable, if I
> access the url(s) from a web browser.  What I am looking for is primarily
> direction on how to go about effectively debugging this.  I tried using
> reply->errorString() right after loop.exec() — but it returns only “Unknown
> Error” whether the download is successful or not.  It should also be noted
> that on failure a file is created but is not a readable zip file.

Why is it not readable? Is the file too short? Is it corrupted? Please compare 
the result with what was supposed to be there.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

More information about the Interest mailing list