The title is a bit confusing. In my Android app, I am making an HttpGet request using HttpClient object. I am not setting any headers so all default values. The request works fine and i get the response from the server.
The problem is that when the same url is requested using HTTP GET request from iphone, the servers response is different. So the server is looking at something, USER-AGENT may be or something else, to decide what to return. I want the same thing as the server returns to iphone app. What can I do i.e what parameters, headers or whatever can I set to make this request same as ios app.
PS: I have tried setting User-Agent to
"Mozilla/5.0(Linux; U; Android 2.2; en-gb; LG-P500 Build/FRF91)
AppleWebKit/533.0 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1" \
using following code..
client.getParams().setParameter(CoreProtocolPNames.USER_AGENT, sUsrAgent);
also plz do not suggest checking server or making changes to the webservice as I do not have access to it.