简体   繁体   English

看到ios app发出的http请求

[英]seeing http requests that ios app makes

I'd like to see the request / responses that an iphone app makes. 我想看看iPhone应用程序发出的请求/响应。 I mostly work on web apps, and I can use firebug / fiddler to see them. 我主要从事网络应用程序,我可以使用firebug / fiddler来查看它们。 But how can I see incoming/outgoing traffic of an iOS app, if im running it on my wireless? 但是,如果我在无线网络上运行它,我如何才能看到iOS应用的传入/传出流量?

The Charles Web Proxy (and I believe Fiddler as well) allow connections from external hosts, when configured properly. 如果配置正确, Charles Web Proxy (我也相信Fiddler)允许来自外部主机的连接。 In Charles, you will need to make sure your iPhone is added to the Access Control List in Proxy -> Access Control Settings. 在Charles中,您需要确保将iPhone添加到代理 - >访问控制设置中的访问控制列表中。

After that, you can simply set your iPhone's proxy to your computer's Charles or Fiddler instance. 之后,您只需将iPhone的代理设置为计算机的Charles或Fiddler实例即可。 In my case, my local desktop is at 192.168.10.1, thus my iPhone's proxy is set to: 就我而言,我的本地桌面位于192.168.10.1,因此我的iPhone代理设置为:

192.168.10.1:8888    

One problem, however, may be if you want to decrypt SSL traffic. 但是,如果您想要解密SSL流量,则可能存在一个问题。 It may be difficult to get the iPhone to add Fiddler or Charles' certificate to the keychain. 可能很难让iPhone将钥匙链添加到Fiddler或Charles的证书中。

You could share your mac wireless to the iphone And then use some tool, i personally use http://www.charlesproxy.com/ for these kind of issues 你可以将你的mac无线分享到iphone然后使用一些工具,我个人使用http://www.charlesproxy.com/来解决这些问题

You could pick a tool from https://superuser.com/questions/99870/mac-wireshark-alternatives 您可以从https://superuser.com/questions/99870/mac-wireshark-alternatives中选择一个工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM