本文介绍了如何配置像Fiddler2或查尔斯Web代理HTTP代理在Windows上使用最新的Andr​​oid模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在完整的赔率来配置一台代理服务器来检查是否有应用程序我开发的HTTP(S)流量。我试着运行Fiddler2和查尔斯Web代理,无论是运行在127.0.0.1:888,并启动Android模拟器的参数:

I'm at complete odds over configuring a proxy to inspect the HTTP(S) traffic for the app I'm developing. I've tried running Fiddler2 and Charles Web Proxy, both run on 127.0.0.1:888, and starting up the Android emulator with the parameter:

-http代理 http://127.0.0.1:8888

要测试一下我打开Android浏览器。我在Fiddler2看到,请求通过代理进行路由。然而,只有很少不要求收到成功应答。在大多数的,而当我说最让我的意思是99%的情况下,请求重试和Android浏览器告诉我再次失败的服务器无法沟通。

To test it out I open the Android browser. I see in Fiddler2 that the request is routed through the proxy. However, only RARELY does the request receive a successful response. In most, and when I say most I mean 99% of the time, the request is retried and fails again with the Android browser telling me "The server failed to communicate".

有没有人找到了一种方法来配置Fiddler2或查尔斯通过Android模拟器调试HTTP(S)流量?

Has anyone found a way to configure Fiddler2 or Charles for debugging HTTP(S) traffic through the Android emulator?

推荐答案

我有同样的问题与查尔斯用模拟器从Android的开发工具R12。当你下载R11和R11从一个替换R12模拟器应该工作。这个bug跟踪<一个href="http://$c$c.google.com/p/android/issues/detail?id=18715&q=proxy&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars"相对=nofollow>这里。

I had the same problem with Charles using the Emulator from the Android development tools r12. It should be working when you download r11 and replace the emulator in r12 with the one from r11. The bug is tracked here.

要获得R11复制下载链接从下载页面和更改R12到R11

To get r11 copy the download link from the download page and change r12 to r11.

这篇关于如何配置像Fiddler2或查尔斯Web代理HTTP代理在Windows上使用最新的Andr​​oid模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 15:54