如何从iPhone调试网络请求? [英] How can I debug network requests from my iPhone?

查看:492
本文介绍了如何从iPhone调试网络请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想查看应用从iPhone发出的网络请求。它与我的计算机位于同一个WiFi网络上(或者如果它使事情变得更容易,我可以将其设置为使用ad-hoc网络)。我不想看到每个数据包,只是我的iPhone请求的URL。我并不关心返回的数据。

I want to check the network requests an app is making from my iPhone. It's on the same WiFi network as my computer (or if it makes things easier, I can set it up to use an ad-hoc network). I don't want to see every packet, just the URLs which my iPhone is requesting. I don't care about the returned data all that much.

非常感谢一个简单的解决方案。

A simple solution would be much appreciated.

推荐答案

如果你想截取手机本身,你需要将它指向你在计算机上设置的http代理并观察请求。有点像 http://www.charlesproxy.com/ 或者很可能有很多免费代理。

If you want to intercept the phone itself you'll need to point it at an http proxy you set up on a computer and watch the requests come through. Something like http://www.charlesproxy.com/ or there are most likely many free proxies.

这篇关于如何从iPhone调试网络请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆