Reliable HTTP communication over GPRS
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
Re: Reliable HTTP communication over GPRS
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?
Re: Reliable HTTP communication over GPRS
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.
Re: Reliable HTTP communication over GPRS
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.