How to monitor your mobile application network traffic in your own LAPTOP

简介: How to monitor your mobile application network traffic in your own LAPTOP

装一个Fiddle,扮演reverse proxy的角色。启动Fiddle之后,查看其host name和监听的端口号:


image.png


把这些信息设置到你手机wifi 连接的proxy setting里面,之后用你手机应用访问网络产生的network request就会被Fiddle 拦截下来,并能够随心所欲的修改。

image.png


例如我们想实现这样一条映射规则:


凡是请求https://openui5.hana.ondemand.com/resources/sap-ui-core.js 的request,都应该被映射到1.30.0的js去:https://openui5.hana.ondemand.com/1.32.0/resources/sap-ui-core.js

只需要这样:

image.png

在这个hook的尾部加一段代码即可:

image.png

语法仿照上面被注释掉的例子:  

image.png

相关文章
|
JavaScript
How to monitor your mobile application network traffic in your own LAPTOP
How to monitor your mobile application network traffic in your own LAPTOP
106 0
How to monitor your mobile application network traffic in your own LAPTOP
how is Fiori launchpad host name and port number determine
Created by Wang, Jerry, last modified on Jul 16, 2015
125 0
how is Fiori launchpad host name and port number determine
|
弹性计算
Structuring the Backend Service Architecture of a Mobile Card Game
2014 saw the rise of intense action mobile card games, and 2015 ushered in the age of real-time battles.
1425 0
Structuring the Backend Service Architecture of a Mobile Card Game
|
XML 网络协议 数据格式