TheApple Captive Network Assistant (CNA) feature is an overlay thatappears and prompts users automatically to login to the detectedcaptive portal network without the need to explicitly open a webbrowser. This type of login is useful on mobile devices where many ofthe common applications are not browser-based and these applicationswould otherwise fail to connect without the successful browser-basedauthentication. Examples of these nonbrowser-based applications areemail, social networking applications, corporate VPNs, and mediastreaming.
TheApple operating systems detect the presence of a network that hascaptive portal enabled by attempting to request a web page from theApple public website. This HTTP GET process retrieves a simplesuccess.html file from the Apple web servers and the operating systemuses the successful receipt of this file to assume that it isconnected to an open network without the requirement for captiveportal authentication.
If thesuccess.html file is not received, the operating system converselyassumes that a captive portal is in place and presents the CNAautomatically to prompt the user to perform a web authenticationtask. When the web authentication has completed successfully, the CNAwindow is closed automatically, which prevents the display of anysubsequent welcome pages or redirecting of the user to theirconfigured home page. If the user chooses to cancel the CNA, theWi-Fi connection to the open network is dropped automatically, whichprevents any further interaction via the full browser or otherapplications.
2. captive networkassistant会发出一个http请求，访问http://captive.apple.com/hotspot-detect.html（同上）
5. captive networkassistant会显示重定向后p.to返回的信息