proxys
v2.3.0
Published
A easy way to share your pc network to mobile device, and capture network traffic to debug mobile app.
Downloads
5
Maintainers
Readme
#Proxys (Easy Http Proxy)
A easy way to share your PC network to mobile device, and capture network traffic to debug mobile app.
Proxys help developer easy to share their local pc network to mobile device, and supply with a convenient method to debug and capture the http request header information from you mobile.
Usage
It's depends on Node, and then just playing like this:
Installing npm (node package manager)
curl https://npmjs.org/install.sh | sh
Installing Proxys
npm install -g proxys
Using Proxys
proxys
Or
cd ROOT_DIR
npm start
and then follow the tips below:
1. Plant this pac URL in your auto-proxy config: http://192.168.1.111:9527/
2. Edit the ROOT/config.js file to add some proxy rules if you want.
Current Proxys Rules info:
==== Skipped Uri below ====
'http:\/\/[a-z0-9-]+\.weibo\.com/(.*)+',
'http:\/\/weibo\.com/(.*)+',
===== Track Logging ... =====
Add the proxy pac file address on your mobile network panel, and once more, enjoy it.
Add skip URL
Edit ROOT/config.js file, add uri to skipUrl array:
module.exports = {
skipUrl : [
'http:\/\/[a-z0-9-]+\.bdimg\.com\/(.*)+',
'http:\/\/m\.baidu\.com\/(.*)+',
]
}
Notice:
"skipUrl" means untrack url list;
The "skipUrl" and "trackUrl" mutexes, if u config both of them, only skipUrl will effect.
Add track URL
Edit ROOT/config.js file, add uri to trackUrl array:
module.exports = {
trackUrl : [
'http:\/\/m\.baidu\.com\/(.*)+',
],
}
Notice: The uri in trackUrl list will be tracked and print log info.
Add block URL
Edit ROOT/config.js file, add url to blockUrl array:
module.exports = {
blockUrl : [
{
target: 'http://music.baidu.com/static/js/abc.js',
dest: '/home/enimo/static/js/abc.js'
},
{
target: 'http://play.baidu.com/static/{*}',
dest: '/home/enimo/static/'
}
]
}
Notice:
The blockUrl.target url will be injected,and return the replaced resource which defined in blockUrl.dest;
Both directory and single file are supported.
Additional info
- Not even 80 port, support any 1000+ port.
- Unsupport https protocol now.
Notes
Especially note for Mac OS X user:
Proxys' suggested partner HTTPScoop (http://www.tuffcode.com/download.html), It's one of your best matches.
Future
I'll keep polishing this app and keep adding new features. If you have any problems when using this engine, please feel free to drop me an issue or contact me:
- Twitter: https://twitter.com/enimo
- Weibo: http://weibo.com/enimo