I have an app that is receiving data over an HTTP connection and the response is chunked in several blocks, as is standard for HTTP/1.1 . I create the HTTP connector, open an input stream, and start reading one byte at a type with read(). This works until the end of the first chunk; at that point read() hangs.
Is this a bug in the Nokia 3650 implementation? Has anyone else seen it?
Is there a workaround? Is there a way to make the GET request using protocol version HTTP/1.0? Failing that is there a way to read past the end of the first chunk?
I too have a similar problem involving chunked data. I have a video stream which in the emulator I can run direct from source to phone and it works perfectly OK (I imagine the source is chunking data).
However it would seem that my mobile operator (Vodafone ES), seem to have some restriction on this type of data (or it could be the WAP gateway) and so it doesnt work.
To get round this I created a servlet which streams data from the source to the servlet and the mobile connects to this servlet. However doing this I run into the chunked data problems which have been described in this post.
I thought perhaps my server was the problem but now I am thinking maybe its the phone. I am using tomcat 4.1.27 and dont think I can disable chunking.
Is the problem confirmed as exisiting on the phones by the fact that there seem to be several of us with this problem or could it still be my server?