You Are Here:

Community: Developer Discussion Boards

#1 Old Reading chunks of data at a time - 2003-03-27, 19:35

Join Date: Mar 2003
Posts: 1
HenrikK
Offline
Registered User
Hi,

I would like to establish an HTTP connection to a server that provides streamed data in chunks, for example stock quotes or heartbeats. It seems that in MIDP the Connector.openInputStream method does not return until it has read ALL the data from the server, which makes it impossible to read a long HTTP response in small chunks.

I have control over the server so I've tried http features such as "Connection: Keep-Alive" and "Transfer-Encoding: chunked" but that just results in the input stream reaching -1 prematurely.

Any ideas?

/Henrik
Reply With Quote

#2 Old 2003-03-30, 19:17

Join Date: Mar 2003
Posts: 34
rsmithh
Offline
Registered User
You need to be more specific about the http headers you are using and the device you are testing on. This is because on many (dare I say most) devices, you are going through a WAP gateway which could be the source of your problem.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia