开发者

Faking user agent for mobile application

开发者 https://www.devze.com 2023-03-27 14:10 出处:网络
I\'m building a mobile application that displays the source of a WAP site. but I am not able to get the html source of my operator WAP site http://divein.tatadocomo.com. I doubt its the user agen开发者

I'm building a mobile application that displays the source of a WAP site. but I am not able to get the html source of my operator WAP site http://divein.tatadocomo.com. I doubt its the user agen开发者_高级运维t that is missing. So can I fake a mobile application to act as WAP browser to extract the source contents. The application is build on MIDP Java 2.0

Or is it something else other that user-agent that is causing the problem?


Nice question, yes there are other factors that an Operator in this case might take into account.

  1. They can determine if you are own their network (i.e. originating IP which you can't change)
  2. They could perhaps be looking at other HTTP headers other than User-Agent. One of them is: Accept header (this tells the server what kind of pages it can accept, e.g. html, wml etc)

Have a look at all the http headers in your browser (using Chrome for example) and see which one's you can play with. Secondly, hit a site that echo's back all your headers from a mobile device, then emulate all those headers on your pc and see if it works. If it doesn't, then it's most probably your IP.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号