[Interest] QNetworkAccessManager put uploads contents twice

Thiago Macieira thiago.macieira at intel.com
Mon Nov 30 18:05:52 CET 2015


On Monday 30 November 2015 16:40:14 ashish dabhade wrote:
> I'm trying to upload a file to Webdav using QNetworkAccessManager's **put**
> method. But to the surprise it seems the file contents are uploaded
> twice!!. Is this is known problem ? The Webdav is configured to allow Basic
> Authentication

It's not a problem. It's normal behaviour because we upload the entire file 
before we get the 401 error code, requesting authorisation. So the file needs 
to be uploaded again, after we emitted the authenticationRequired signal and 
got the credentials.

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




More information about the Interest mailing list