beta
Hello developer. Login with your existing account. New to Vodafone Developer? Register your account.

+ Login or create an account

0

Please help!!

We discovered that vodafone is not returning the correct data from our server to our android app via. 3G (Other networks, wifi work ok)

We recently updated our app to recieve GZIP data from our server to help with our server congestion. The app is failing to work only when on vodafone 3G network.

After examining logs, we noticed the data being recd on the handset is uncompressed ? Which means the app is a)receiving old data (before we changed to GZIP) or b) somehow the data is being uncompressed before reaching the app.

Can anyone help us here! we are really quite unsure on what is going on!!!

best

Johnny

3 Answers:

0

Update:

Yes it is Vodafone UK. Tested on two vodafone handsets in different parts of the country to make sure.

Out of interest, as a test, and to add to the confusion. I changed the php to return a json string. Now I didnt tell my colleague who still had a app installed on his vodafone which wasnt working on vodafone 3G , but worked on WiFi.

Guess what happened! :) The app starting working on 3G and not on WiFi. So basically vodafone was now sending GZIP to the phone, even though, on our server, I had changed it to output just a text string.

This made me look into what headers the app was sending to our server. And I did include a header:

request.addHeader("Accept-Encoding", "gzip");

So my theory was that somehow, vodafone is actually producing a GZIP on behalf of our server ?

So as a test, I removed this header, but it didnt seem to do anything :(

edited 1 year ago
0

Hi Kevin

Yes its Vodafone UK.

Thanks for looking into it for me.

Best

Johnny

0

Hi Johnny - could you just confirm that this is on Vodafone UK? I'm guessing so and will contact the sys admins for the WAP gateway to see how they handle GZIP. Cheers. Kevin

Login and answer the question