Resuming Http Connection

Login to reply to this topic.
Fri, 2006-09-15 11:56
Joined: 2006-05-22
Forum posts: 50
Hi to all Grin

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? Huh

Thanks in advance!!!! Cool

Mon, 2006-09-25 13:16
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Resuming Http Connection
Hi,

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/

Tue, 2006-10-10 07:02
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Thanx for ur kind information  tote! Grin

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

Tue, 2006-10-10 10:00
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Resuming Http Connection
Hi,

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/

Wed, 2006-10-11 07:12
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Thanx a lot  tote!

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

Thu, 2006-10-12 05:31
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Hi Tote!

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!
Thu, 2006-10-12 11:43
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Resuming Http Connection
I will definetely not be able to tell you why your device gets rebooted. But I'm sure that it's an error in the device, let it be a sw or a hw one - dunno. Have you tried to debug (e.g. log) at what point it gets rebooted?

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Fri, 2006-10-13 10:17
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Hi tote!

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
Fri, 2006-10-13 12:47
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Resuming Http Connection
Nope. Again, forcing a device to reboot is a very aggressive bug, much bigger than what you can cause with your code. It must be a fatal error somewhere deeper in the system.

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Sat, 2006-10-14 09:36
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Thanx tote!

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
Sat, 2006-10-14 23:18
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Resuming Http Connection
In the client-server relationship who is the server? Is it a local server program running on your phone (e.g. the Socket server) or a remote server that you're trying to connect to?

Tote

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Tue, 2006-10-17 04:56
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Hi,

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
Tue, 2006-10-17 15:05
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection

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, Smiley

Thanx in Advance!!!! Grin

by
Karthikeyan.B
Tue, 2006-10-24 12:49
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: Resuming Http Connection
Hehh,

It seems that some components still try to find cauthenticationfilterinterface.h in the SDK even though it's not published.  Huh

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/

Wed, 2006-10-25 07:50
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Hi tote!

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. Roll Eyes

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. Sad

Coz, In the secure socket example , they didnt use the RConeection class.

Can u clear my doubts? Huh

Thanx in Advance!!!
Wed, 2006-10-25 10:20
Joined: 2006-05-22
Forum posts: 50
Re: Resuming Http Connection
Hi tote!

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
  • Login to reply to this topic.