移动应用程序的伪造用户代理
我正在构建一个显示 WAP 站点源的移动应用程序。但我无法获取我的运营商 WAP 网站 http://divein.tatadocomo.com 的 html 源代码。我怀疑是缺少用户代理。那么我可以伪造一个移动应用程序来充当 WAP 浏览器来提取源内容吗?该应用程序是基于 MIDP Java 2.0 构建的
,或者是用户代理以外的其他原因导致了问题?
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 agent 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好问题,是的,在这种情况下,运营商可能会考虑其他因素。
查看浏览器中的所有 http 标头(例如使用 Chrome)看看你可以玩哪一个。
其次,访问一个可以从移动设备回显所有标头的网站,然后在您的电脑上模拟所有这些标头,看看它是否有效。如果没有,则很可能是您的 IP。
Nice question, yes there are other factors that an Operator in this case might take into account.
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.