[Qt-interest] cancel http requests

Scott Aron Bloom Scott.Bloom at onshorecs.com
Thu Aug 25 18:24:32 CEST 2011


The qtsoap package doesn't used QNAM it used QHttp and has never been
updated...

But the process to cancel is the same, track the request object and call
cancel on it.

Scott

-----Original Message-----
From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com
[mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On
Behalf Of Mandeep Sandhu
Sent: Thursday, August 25, 2011 7:01 AM
To: Sergey
Cc: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] cancel http requests

> Is it possible to cancel some of previous http requests on the client 
> side, so that server would not serve them?

It is, if you have a handle to QNetworkReply object that was returned in
your get/post method call (QNAM::get/post);

http://doc.qt.nokia.com/latest/qnetworkreply.html

You can call QNetworkReply::abort() to cancel the pending request.

HTH,
-mandeep

>
> --
> Thanks!
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest



More information about the Qt-interest-old mailing list