简体   繁体   English

如何在Captive Portal中调试浏览器?

[英]How can I debug the browser in Captive Portal?

The Captive Portal has a browser that sometimes opens up when you attempt to connect to a wireless network. Captive Portal的浏览器有时会在您尝试连接到无线网络时打开。

Does anyone know how I can debug it? 有人知道我该如何调试吗?

What I've already tried: 我已经尝试过的:

  1. I have tried running a simulator, but the simulator wont open the portal. 我曾尝试运行模拟器,但模拟器无法打开门户。
  2. I have tried connecting an iPhone to my mac and debug using Safari - develop, but that only shows debug information when the iPhone is running Safari, not the Captive Portal. 我尝试将iPhone连接到Mac并使用Safari进行调试-开发,但是仅在iPhone运行Safari时显示调试信息,而不显示Captive Portal。

I've had to do this in the past, what worked for me was to grab the URL of the captive portal page (You can usually obtain this by using curl to visit google or something, and capturing the response which will redirect you to the captive portal page.) 过去我必须这样做,对我有用的是获取强制门户网站页面的URL(您通常可以通过使用curl访问google或其他内容并捕获响应将其重定向到强制门户页面。)

Once you have the URL, just load it in mobile safari and use the debug mode. 拥有网址后,只需将其加载到移动safari中并使用调试模式即可。 The captive portal window is just a UIWebView using mobile safari so the debug should be the same. 强制门户网站窗口只是使用移动浏览器的UIWebView因此调试应该相同。

Unfortunately there's no way that I know to debug directly in the captive portal window. 不幸的是,我无法直接在强制门户网站窗口中进行调试。

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

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