PDA

View Full Version : Reliable HTTP communication over GPRS



Ratheendrans
28th May 2012, 07:08
Hi,

I am working on an application which is supposed to large XML data to webserver by GPRS.
I am using HTTP get/post for transferring data,I have observed that server is not receiving all the data send by my device by http post.I understand http uses TCP as transport medium and losses are due to delay , data traffic in GPRS/GSM network.Kindly let me know the correct way/best practice for reliable data transfer on GPRS network,please correct me if my understating is wrong.

Thanks in advance.

Ratheendran

Santosh Reddy
28th May 2012, 09:48
TCP is a connection based reliable communication protocol. Losses may be due to your application, or how it uses get/post. Even if there is a delay the data delivery is sure.

By the way what is your Qt related question in this post?

Ratheendrans
28th May 2012, 10:16
Thanks for the reply.

I understand TCP is a reliable protocol,and delay in GPRS data transfer is causing the server to close the socket and incomplete data is received by upper layer,I want to know if QT can catch this kinds of error,or in case of abrupt communication failure.

ChrisW67
28th May 2012, 10:21
Your QNetworkReply object will emit a error() signal closely followed by a finished() signal when the connection is terminated. QNetworkReply::error() will give you details of the problem.