It depends on what you mean. An application that opens an URLConnection can say that it is something different, e.g. an IE browser.
You can find an example here: http://www.java2s.com/Code/Java/Network-Protocol/URLConnectionsetRequestProperty.htm On 12 Jan, 12:40, Neilz <[email protected]> wrote: > I presume there's no way to mask the android request to make it appear > like another :-/ > > On Jan 12, 11:29 am, Neilz <[email protected]> wrote: > > > > > Right, so if someone wanted to stop web responses going to android > > apps, they can, without it affecting their usual service? > > > Thanks. > > > On Jan 12, 10:28 am, Adrian Vintu <[email protected]> wrote: > > > > Sure. You have to use the user agent. > > > > You have something like > > > > Mozilla/5.0 (Linux; U; Android 1.5; en-us; Galaxy Build/CUPCAKE) > > > AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile > > > Safari/525.20.1 > > > > for Android > > > > and something like > > > > Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 > > > Firefox/3.5.5 (.NET CLR 3.5.30729) > > > > from the normal Firefox browser. > > > > BR, > > > Adrian Vintu > > > > On Tue, Jan 12, 2010 at 11:21 AM, Neilz <[email protected]> > > > wrote: > > > > Hi all. > > > > > Could a standard web server identify an HTTP request as coming from a > > > > normal browser, as opposed to an Android application? > > > > > What could be different about the request that would enable the server > > > > to differentiate between the two, and modify the response accordingly? > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to [email protected] > > > > To unsubscribe from this group, send email to > > > > [email protected]<android-developers%2Bunsubs > > > > [email protected]> > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

