How can I debug the browser in Captive Portal?

送分小仙女□ 提交于 2019-12-08 17:15:33

问题


The Captive Portal has a browser that sometimes opens up when you attempt to connect to a wireless network.

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.

回答1:


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.)

Once you have the URL, just load it in mobile safari and use the debug mode. The captive portal window is just a UIWebView using mobile safari so the debug should be the same.

Unfortunately there's no way that I know to debug directly in the captive portal window.



来源:https://stackoverflow.com/questions/20652373/how-can-i-debug-the-browser-in-captive-portal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!