Resuming Http Connection
| Fri, 2006-09-15 11:56 | |
|
Hi to all
![]() i am new to symbian.i am doing an application on N6600 S60 2.1SDK.My application downloading data frm the remote server. While downloading, The network is gone n ups within 3mins. Bt the client shows the connecting bar, its not resuming or not sending any error messages. Hw would i handle it? ![]() Thanks in advance!!!! ![]() |
|









Forum posts: 723
First, 2.1 is not for N6600, but for newer phone models. Okay, it might run on N6600 as well, but you might use such a feature from the SDK that is not available on your phone.
Second, you can be notified upon change in your connection state if you use RConnection::ProgressNotification.
Finally third, resumption is possible using HTTP, look at "Byte-Range" header in RFC 2616. Only if the remote server supports it, of course.
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 50
Actually we r doing our application for all S60 devices.So, the main target on N6600.
I am tring to do this on my application.
Bt where should i specify the "byte-range" in header.
If u ve any ex. on this topic, please tell to me.
And one more question,
The no is always busy while the device is downloading the data whenever i make a call to that no.
Bt the device is using GPRS B class.
I dont know why is it happing.
Does operator do anything for this one?(My location is INDIA)
Thanx!
By,
Karthikeyan.B
Forum posts: 723
As to the Byte-Range header: please, refer to RFC 2616 (http://www.w3.org/Protocols/rfc2616/rfc2616.html) for complete understanding of how this works in HTTP.
As to the busy #: I have no idea why it's always busy if you an open (but suspended) GPRS connection meanwhile. Contact your operator and ask for help, if it's possible.
Finally, if you didn't insist on programming for N6600, but for a newer version (S60 2nd Edition, FP3), then you could use Download Manager available in the SDK, which solves the aforementioned byte-range problem and supports suspension/resumption.
Cheers,
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 50
Now, I am understanding the HTTP layer and also SDK FP3 example.
For busy #:I am trying to contact the operators to do something on that.
And also, I got a call on N72 while my application is downloading the data.Bt it happened only one time.
That time the device got struct to handle the call.
Thanx in advance!
By,
Karthikeyan.B
Forum posts: 50
I got some other bug on my application. While the device downloading the data,Sometimes the device is rebooted.I dont know why is it happing.I noticed this props on N6600.
The N6600 is 32 bit version, i think.
Is there anything with that memory leak or the downloading data formats?
And also, i got the same bug on N6630 also.
Plz help me!!!
Thanx in advance!
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 50
I got the error log for that rebooted error, tote.
In log says there is no props on the application.
I cant able to find even one error for this one.
And more thing, WHile downloading the data , we are creating one file on the device n writing the data on that file.In mean time we r reading the data from the same file.
We gave it as file format as EShareAny n EFileWrite modes
Is there any problems on this logic?
thanx!
By,
Karthikeyan.B
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 50
I ll check my application whole codes!
I faced one more bug on my application.
While the device posting the request the server, i pressed the cancel before the request reaches the server, I called the RConnection stop n close.
There is no props to discoonct the connection.
If u pressed the cancel continuously(Nearly 3 times), i got the null pointer exception on server side.Thats the server got the request action without the Request body.
I add the some user n device data with this request.
Is it error of client or server side?
Plz can u help me?
Thanx in Advance!!!!
by,
Karthikeyan.B
Forum posts: 723
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 50
We are using the remote server to get the data!
We found the solution for this error.Actually , This is server side props.First they are getting the request than they are excepting to handle the headers.
If we cancel the request before the cilent sends the headers to server, The server will receive empty header.So, its throwing the null pointer exception.
Thanx tote!
By,
Karthikeyan.B
Forum posts: 50
Hi Tote!
I tried to use the authentication on my application.
So i used the same implementation which is it in SDK.
while compliation i m getting an error like,
"ecom.h: No such file or directory [C:\Symbian\7.0s\Series60_v21_CW\epoc32\include\http/cauthenticationfilterinterface.h]"
I dont know why is it giving like that!
Do u ve any idea abt this error?
If u know,Please help me!
And also, what is HTTPS and How do i implement it?
If u ve any example code/articals, please tell me,
Thanx in Advance!!!!
by
Karthikeyan.B
Forum posts: 723
It seems that some components still try to find cauthenticationfilterinterface.h in the SDK even though it's not published.
Try to remove the header file from the include statements and see if it works. I guess it won't, but there shouldn't be any problem after the full removal of authenticationfilterinterface. I see, though, that your problem will not be solved as it's exactly the same thing that you wanted to use (i.e. the authentication filter). Please, tell me if this filter is available in the SDK or not. I doubt, but who knows?
Tote
Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/
Forum posts: 50
I think, The SDK doesn't contain the authenticationfilterinterface.
I complied my application on SDK FP3. Here also , i m getting the same error what did i face on FP2.
Currently, i m using RConnection class n MHTTPTransactionCallback for making connection and receivving the datra from the remote server.
Can i use the CSeureSocket class for making the secure HTTP connection.
If yes, hw can i bind the RConnection with RSocket n CSeureSocket class instances.
Coz, In the secure socket example , they didnt use the RConeection class.
Can u clear my doubts?
Thanx in Advance!!!
Forum posts: 50
Sorry, for confusing u.
I cleared that error("ecom.h: No such file or directory [C:\Symbian\7.0s\Series60_v21_CW\epoc32\include\http/cauthenticationfilterinterface.h]"
)
I include the ecom("${EPOCROOT}epoc32\include\ecom") into the system Include Path. Then. i complied.Now its working.
by,
Karthikeyan.B