This is a follow up question to In-application update downloads from server not working. Service provider error?. I have changed the mobile internet settings to “do not adapt any sites”, but now I am getting the following error message. Your request did not supply a client identification header.
I already tried setHeader for HttpGet as below, but this made no difference. What could this error message mean?
httpget.setHeader("Accept", "application/vnd.android.package-archive");
httpget.setHeader("Content-Type", "application/vnd.android.package-archive");
String userAgent = System.getProperty("http.agent");
httpget.setHeader("User-Agent", userAgent);
I can download the .apk with no problems from within the Android Internet Browser and the code is working on a different tablet and OS version on the same mobile carrier. Please any help or ideas are welcome. This is driving me crazy.
I had to manually define the user agent string as below. Worked after doing that.
Hope this helps someone with the same problem.