Results 1 to 2 of 2

Thread: QNetworkAccessManager and QNetworkReply::OperationCanceledError

  1. #1
    Join Date
    Oct 2012
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default QNetworkAccessManager and QNetworkReply::OperationCanceledError

    hello!

    i'm using a QNAM object to fetch a file over https. after the request it's required some time to compose an answer, usualy about a minute. this is a timing diagram of the request execution in firefox, request completes successfully. but when i try to query it using QNAM::get method, it returns in about 15 seconds, and QNetworkReply::error() returns 5 (OperationCanceledError). is there a way to manage request timeout?

    i tried to set request header "Keep-Alive: timeout=120" but it changed nothing of course.

  2. #2
    Join Date
    Oct 2012
    Posts
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QNetworkAccessManager and QNetworkReply::OperationCanceledError

    looks like there is no way for this. i had to use libcurl.

Similar Threads

  1. Replies: 0
    Last Post: 15th January 2014, 17:15
  2. QNetworkAccessManager and multiple QNetworkReply
    By Acid in forum Qt Programming
    Replies: 2
    Last Post: 22nd August 2012, 23:52
  3. Replies: 11
    Last Post: 10th February 2011, 01:38
  4. Replies: 2
    Last Post: 18th June 2010, 12:04
  5. Replies: 2
    Last Post: 9th January 2010, 03:03

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.