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

List:       pykde
Subject:    [PyQt] resuming http download and resending http request
From:       redstone-cold <redstone-cold () 163 ! com>
Date:       2013-11-17 11:13:24
Message-ID: 4a413fe9.4ceb.14265c3ddfb.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

first ,I paused the downloading process without closing my application ,a few minutes later ,if \
I want to resume the download again ,do I have to send a second request to the sever ?

as far as I know ,the http connection will keep alive for a while after the downloading process \
is paused , so there is no need to resend a request to the sever again ,right ?

In Qt, how can we pause the downloading process? which method should we use ? \
QNetworkReply::close() or QNetworkReply::abort() or other ways ?

if the http connection still keeps alive, is it possible to resume the http download without \
resending http request to the sever ? It would be better to show me some code on implementing \
this ,thanks.


[Attachment #5 (text/html)]

<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div \
style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><p style="margin: 0px \
0px 1em; padding: 0px; border: 0px; vertical-align: baseline; clear: both; font-family: Arial, \
'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">first ,I paused the \
downloading process without closing my application ,a few minutes later ,if I want to resume \
the download again ,do I have to send a second request to the sever ?</p><p style="margin: 0px \
0px 1em; padding: 0px; border: 0px; vertical-align: baseline; clear: both; font-family: Arial, \
'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">as far as I know ,the http \
connection will keep alive for a while after the downloading process is paused , so there is no \
need to resend a request to the sever again ,right ?</p><p style="margin: 0px 0px 1em; padding: \
0px; border: 0px; vertical-align: baseline; clear: both; font-family: Arial, 'Liberation Sans', \
'DejaVu Sans', sans-serif; line-height: 18px;">In Qt, how can we pause the downloading process? \
which method should we use ? QNetworkReply::close() or QNetworkReply::abort() or other ways \
?</p><p style="margin: 0px 0px 1em; padding: 0px; border: 0px; vertical-align: baseline; clear: \
both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">if \
the http connection still keeps alive, is it possible to resume the http download without \
resending http request to the sever ? It would be better to show me some code on implementing \
this ,thanks.</p></div><br><br><span title="neteasefooter"><span \
id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span \
id="netease_mail_footer"></span></span>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

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