[android-developers] Re: Downloading Problem
I went through this a couple of months back with our server where we
had the same script sometimes provide a content-length, other times
the length was -1
AFAIK, -1 is a valid response when the server can't determine the
length.
In researching the issue, we found our solution was in the server
output headers - much like Bob suggested
We changed the output headers on those problematic scripts
from Header('Content-Type: text/html');
to Header('Content-Type: text/html charset=UTF-8');
adding the charset encoding made all the difference - "who'd've thunk
it"
YMMV of course since you are doing ZIP files, but it's something to
check.
On Nov 10, 11:16 pm, Android Humanoid <droid.hu...@gmail.com> wrote:
> The length of the content that am getting is -1, The server is ours
> only, so I asked the server persons to look into the logs what exactly
> logged, They informed that
> there is nothing logged, Is there any chance for android to change
> url, because, the same url is working on desktop.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home