E
Eric Larson
Chunk length was not valid in HttpWebRequest class
I've seen a lot of people getting this problem and I've done a lot of
reading, but I can't seem to find much about my particular instance...
Background: I connect my PocketPC (iPAQ 3835) via SynCE (an open source
equivilant to ActiveSync for Linux --
http://sourceforge.net/projects/synce/). The PocketPC connects to the
Linux machine and tries to browse to a website on an Apache server
(1.2.23) residing on this machine.
Most of the requests made by the PPC are dynamic content so they come
back with chunked-encoding. When a request is a certain size, it fails
(3928 bytes is one example). It also can happen when the request is
larger and individual chunks are some particular range of size (that's
harder to pin down).
This is not a public server so I can't give you any URLs. If need be, I
have a VB6 app that makes similar requests via Winsock and I can send
you the raw data back from it.
This isn't https, just http and the Apache server isn't putting white
spaces in the chunk sizes.
If I connect the PPC to a Windows machine through ActiveSync it works
just fine. So either ActiveSync is helping the PPC out or SynCE is
corrupting the data.
I tried the fix of changing the protocol to HTTP/1.0 and that did work.
However, it makes requests so much slower than before. With HTTP/1.1 we
could make 6-7 requests per second but with HTTP/1.0 it ranges from 1-4
requests every two seconds. We could settle for 1 request ever second,
but 1 request every two seconds is too slow.
NETCF 1.0
- did not work
NETCF 1.0 SP1
- did not work
NETCF 1.0 SP2 beta
- did not work at all -- requests would go out, but no data would
come back. Multiple Webexceptions were raised where
WebException.Message was simply "Webexception" when the following line
of code was executed:
Dim streamResponse As Stream = myHttpWebResponse1.GetResponseStream()
If you have any questions, let me know, I'm looking for any suggestions!
Thanks,
Eric
I've seen a lot of people getting this problem and I've done a lot of
reading, but I can't seem to find much about my particular instance...
Background: I connect my PocketPC (iPAQ 3835) via SynCE (an open source
equivilant to ActiveSync for Linux --
http://sourceforge.net/projects/synce/). The PocketPC connects to the
Linux machine and tries to browse to a website on an Apache server
(1.2.23) residing on this machine.
Most of the requests made by the PPC are dynamic content so they come
back with chunked-encoding. When a request is a certain size, it fails
(3928 bytes is one example). It also can happen when the request is
larger and individual chunks are some particular range of size (that's
harder to pin down).
This is not a public server so I can't give you any URLs. If need be, I
have a VB6 app that makes similar requests via Winsock and I can send
you the raw data back from it.
This isn't https, just http and the Apache server isn't putting white
spaces in the chunk sizes.
If I connect the PPC to a Windows machine through ActiveSync it works
just fine. So either ActiveSync is helping the PPC out or SynCE is
corrupting the data.
I tried the fix of changing the protocol to HTTP/1.0 and that did work.
However, it makes requests so much slower than before. With HTTP/1.1 we
could make 6-7 requests per second but with HTTP/1.0 it ranges from 1-4
requests every two seconds. We could settle for 1 request ever second,
but 1 request every two seconds is too slow.
NETCF 1.0
- did not work
NETCF 1.0 SP1
- did not work
NETCF 1.0 SP2 beta
- did not work at all -- requests would go out, but no data would
come back. Multiple Webexceptions were raised where
WebException.Message was simply "Webexception" when the following line
of code was executed:
Dim streamResponse As Stream = myHttpWebResponse1.GetResponseStream()
If you have any questions, let me know, I'm looking for any suggestions!
Thanks,
Eric