Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【20170227】Charles抓取Iphone上的数据包 #79

Closed
zhongxia245 opened this issue Feb 27, 2017 · 0 comments
Closed

【20170227】Charles抓取Iphone上的数据包 #79

zhongxia245 opened this issue Feb 27, 2017 · 0 comments

Comments

@zhongxia245
Copy link
Owner

Charles抓取Iphone上的数据包

时间:2017-02-27 10:29:58
作者:转载

一、前言

现在APP开发中,测试手机上数据包是否正常,是很重要的一个环节。 APP打包好了,在手机上测试,发现了异常,第一步就是需要判断下是否服务端返回的数据是有问题的。

这里讲解下 charles 抓包工具如何抓去 Iphone下的数据包

下面这几个步骤后,亲测可以使用,并且抓去了一些简单的数据

二、抓去App上数据包的流程

  1. 手机和Mac连接在同一个Wife

1. 启动Charles ,代理配置

proxy --> proxy settings

默认使用 8888就可以了。

2. 查看mac电脑的IP地址

# 打开终端
ifconfig

# 或者, 按住option+鼠标点击右上角wife信号烂

3. 设置手机的Http代理

iphone-》设置-》wifi-》找到相对应的wifi,设置http代理为手动,服务端和端口和mac电脑上的一致。

4. 搞定

现在在看 charles的列表,就会发现有多出来一些手机的请求了。

如果请求的接口需要证书的话,则参考《 iPhone 抓包工具Charles使用》

三、参考文章

  1. 《 iPhone 抓包工具Charles使用》
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant