{"software_name":"ooniprobe","software_version":"1.3.1","test_start_time":"2015-07-07 13:23:39","test_name":"captive_portal","test_keys":{"socksproxy":null,"agent":"agent","vendor_tests":{"Apple HTTP Captive Portal":{"URL":"http:\/\/www.apple.com\/library\/test\/success.html","http_status_number":"200","http_status_summary":"Success","User_Agent":"Mozilla\/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit\/420+ (KHTML, like Gecko) Version\/3.0 Mobile\/1A543a Safari\/419.3","result":true},"MS HTTP Captive Portal":{"URL":"http:\/\/www.msftncsi.com\/ncsi.txt","http_status_number":"200","http_status_summary":"Microsoft NCSI","User_Agent":"Microsoft NCSI","result":true},"W3 Captive Portal":{"URL":"http:\/\/tools.ietf.org\/html\/draft-nottingham-http-portal-02","http_status_number":"428","http_status_summary":"428 Network Authentication Required","User_Agent":"Mozilla\/5.0 (Windows NT 6.1; rv:5.0) Gecko\/20100101 Firefox\/5.0","result":true}},"vendor_dns_tests":{"ms_dns_cp":["131.107.255.255"],"google_dns_cp":{"addresses":[],"result":true}},"queries":[{"resolver_hostname":null,"query_type":"A","hostname":"dns.msftncsi.com","answers":[{"ipv4":"131.107.255.255","answer_type":"A","ttl":"30"}],"failure":null,"resolver_port":null},{"resolver_hostname":null,"query_type":"NS","hostname":"ooni.nu","answers":[{"answer_type":"NS","ttl":"1800"},{"answer_type":"NS","ttl":"1800"},{"answer_type":"NS","ttl":"1800"},{"answer_type":"NS","ttl":"1800"},{"answer_type":"NS","ttl":"1800"}],"failure":null,"resolver_port":null},{"resolver_hostname":null,"query_type":"A","hostname":"dns2.registrar-servers.com","answers":[{"ipv4":"162.252.53.60","answer_type":"A","ttl":"1800"},{"ipv4":"173.245.59.16","answer_type":"A","ttl":"1800"},{"ipv4":"72.20.53.50","answer_type":"A","ttl":"1800"}],"failure":null,"resolver_port":null},{"resolver_hostname":null,"query_type":"A","hostname":"dns1.registrar-servers.com","answers":[{"ipv4":"185.61.155.14","answer_type":"A","ttl":"1800"},{"ipv4":"173.245.58.17","answer_type":"A","ttl":"1800"},{"ipv4":"162.252.53.61","answer_type":"A","ttl":"1800"}],"failure":null,"resolver_port":null},{"resolver_hostname":null,"query_type":"A","hostname":"dns3.registrar-servers.com","answers":[{"ipv4":"72.20.53.50","answer_type":"A","ttl":"1800"},{"ipv4":"173.245.58.45","answer_type":"A","ttl":"1800"},{"ipv4":"185.61.155.11","answer_type":"A","ttl":"1800"}],"failure":null,"resolver_port":null},{"resolver_hostname":null,"query_type":"A","hostname":"dns4.registrar-servers.com","answers":[{"ipv4":"173.245.59.40","answer_type":"A","ttl":"1800"},{"ipv4":"185.61.155.12","answer_type":"A","ttl":"1800"},{"ipv4":"69.197.21.28","answer_type":"A","ttl":"1800"}],"failure":null,"resolver_port":null},{"resolver_hostname":null,"query_type":"A","hostname":"dns5.registrar-servers.com","answers":[{"ipv4":"69.197.21.29","answer_type":"A","ttl":"1800"},{"ipv4":"185.61.155.13","answer_type":"A","ttl":"1800"}],"failure":null,"resolver_port":null},{"resolver_hostname":"72.20.53.50","query_type":"SOA","hostname":"Ooni.nu","answers":[{"hostname":"dns1.registrar-servers.com","retry_interval":"1801","minimum_ttl":"3601","answer_type":"SOA","ttl":"3601","serial_number":"2015013000","responsible_name":"hostmaster.registrar-servers.com","expiration_limit":"604800","refresh_interval":"3600"}],"failure":null,"resolver_port":53},{"resolver_hostname":"72.20.53.50","query_type":"SOA","hostname":"Ooni.nu","answers":[{"hostname":"dns1.registrar-servers.com","retry_interval":"1801","minimum_ttl":"3601","answer_type":"SOA","ttl":"3601","serial_number":"2015013000","responsible_name":"hostmaster.registrar-servers.com","expiration_limit":"604800","refresh_interval":"3600"}],"failure":null,"resolver_port":53},{"resolver_hostname":"162.252.53.61","query_type":"SOA","hostname":"Ooni.nu","answers":[{"hostname":"dns1.registrar-servers.com","retry_interval":"1801","minimum_ttl":"3601","answer_type":"SOA","ttl":"3601","serial_number":"2015013000","responsible_name":"hostmaster.registrar-servers.com","expiration_limit":"604800","refresh_interval":"3600"}],"failure":null,"resolver_port":53},{"resolver_hostname":"69.197.21.28","query_type":"SOA","hostname":"Ooni.nu","answers":[],"failure":"no_answer","resolver_port":53},{"resolver_hostname":"173.245.59.16","query_type":"SOA","hostname":"Ooni.nu","answers":[{"hostname":"dns1.registrar-servers.com","retry_interval":"1801","minimum_ttl":"3601","answer_type":"SOA","ttl":"3601","serial_number":"2015013000","responsible_name":"hostmaster.registrar-servers.com","expiration_limit":"604800","refresh_interval":"3600"}],"failure":null,"resolver_port":53}],"requests":[{"response_length":"68","request":{"body":null,"headers":{"User-Agent":"M"},"tor":{"is_tor":false,"exit_name":null,"exit_ip":null},"url":"http:\/\/www.apple.com\/library\/test\/success.html","method":"GET"},"response":{"body":"Success<\/TITLE><\/HEAD><BODY>Success<\/BODY><\/HTML>","headers":{"Date":"Wed, 08 Jul 2015 01:23:49 GMT","Content-Length":"68","Content-Type":"text\/html","Connection":"close","Server":"Apache"},"code":200}},{"response_length":"23200","request":{"body":null,"headers":{"User-Agent":"M"},"tor":{"is_tor":false,"exit_name":null,"exit_ip":null},"url":"http:\/\/tools.ietf.org\/html\/draft-nottingham-http-portal-02","method":"GET"},"response":{"body":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\"\n \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" xml:lang=\"en\" lang=\"en\">\n<head profile=\"http:\/\/dublincore.org\/documents\/2008\/08\/04\/dc-html\/\">\n <meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/>\n <meta name=\"robots\" content=\"index,follow\" \/>\n <meta name=\"creator\" content=\"rfcmarkup version 1.111\" \/>\n <link rel=\"schema.DC\" href=\"http:\/\/purl.org\/dc\/elements\/1.1\/\" \/>\n<meta name=\"DC.Identifier\" content=\"urn:ietf:id:nottingham-http-portal\" \/>\n<meta name=\"DC.Description.Abstract\" content=\""Captive portals" are a commonly-deployed means of obtaining access\ncredentials and\/or payment for a network. This memo introduces a new\nHTTP status code as a means of addressing issues found in these\ndeployments. This memo should be discussed on the ietf-http-wg@w3.org\nmailing list, although it is not a work item of the HTTPbis WG.\" \/>\n<meta name=\"DC.Creator\" content=\"Mark Nottingham <mnot@mnot.net>\" \/>\n<meta name=\"DC.Date.Issued\" content=\"2011-02-17\" \/>\n<meta name=\"DC.Title\" content=\"The Network Authentication Required HTTP Status Code\" \/>\n\n <link rel=\"icon\" href=\"\/images\/id.png\" type=\"image\/png\" \/>\n <link rel=\"shortcut icon\" href=\"\/images\/id.png\" type=\"image\/png\" \/>\n <title>draft-nottingham-http-portal-02 - The Network Authentication Required HTTP Status Code<\/title>\n \n \n <style type=\"text\/css\">\n\tbody {\n\t margin: 0px 8px;\n font-size: 1em;\n\t}\n h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {\n\t font-weight: bold;\n line-height: 0pt;\n display: inline;\n white-space: pre;\n font-family: monospace;\n font-size: 1em;\n\t font-weight: bold;\n }\n pre {\n font-size: 1em;\n margin-top: 0px;\n margin-bottom: 0px;\n }\n\t.pre {\n\t white-space: pre;\n\t font-family: monospace;\n\t}\n\t.header{\n\t font-weight: bold;\n\t}\n .newpage {\n page-break-before: always;\n }\n .invisible {\n text-decoration: none;\n color: white;\n }\n a.selflink {\n color: black;\n text-decoration: none;\n }\n @media print {\n body {\n font-family: monospace;\n font-size: 10.5pt;\n }\n h1, h2, h3, h4, h5, h6 {\n font-size: 1em;\n }\n \n a:link, a:visited {\n color: inherit;\n text-decoration: none;\n }\n .noprint {\n display: none;\n }\n }\n\t@media screen {\n\t .grey, .grey a:link, .grey a:visited {\n\t\tcolor: #777;\n\t }\n .docinfo {\n background-color: #EEE;\n }\n .top {\n border-top: 7px solid #EEE;\n }\n .bgwhite { background-color: white; }\n .bgred { background-color: #F44; }\n .bggrey { background-color: #666; }\n .bgbrown { background-color: #840; } \n .bgorange { background-color: #FA0; }\n .bgyellow { background-color: #EE0; }\n .bgmagenta{ background-color: #F4F; }\n .bgblue { background-color: #66F; }\n .bgcyan { background-color: #4DD; }\n .bggreen { background-color: #4F4; }\n\n .legend { font-size: 90%; }\n .cplate { font-size: 70%; border: solid grey 1px; }\n\t}\n <\/style>\n <!--[if IE]>\n <style>\n body {\n font-size: 13px;\n margin: 10px 10px;\n }\n <\/style>\n <![endif]-->\n\n <script type=\"text\/javascript\"><!--\n function addHeaderTags() {\n\tvar spans = document.getElementsByTagName(\"span\");\n\tfor (var i=0; i < spans.length; i++) {\n\t var elem = spans[i];\n\t if (elem) {\n\t\tvar level = elem.getAttribute(\"class\");\n if (level == \"h1\" || level == \"h2\" || level == \"h3\" || level == \"h4\" || level == \"h5\" || level == \"h6\") {\n elem.innerHTML = \"<\"+level+\">\"+elem.innerHTML+\"<\/\"+level+\">\";\t\t\n }\n\t }\n\t}\n }\n var legend_html = \"Colour legend:<br \/> <table> <tr><td>Unknown:<\/td> <td><span class='cplate bgwhite'>    <\/span><\/td><\/tr> <tr><td>Draft:<\/td> <td><span class='cplate bgred'>    <\/span><\/td><\/tr> <tr><td>Informational:<\/td> <td><span class='cplate bgorange'>    <\/span><\/td><\/tr> <tr><td>Experimental:<\/td> <td><span class='cplate bgyellow'>    <\/span><\/td><\/tr> <tr><td>Best Common Practice:<\/td> <td><span class='cplate bgmagenta'>    <\/span><\/td><\/tr> <tr><td>Proposed Standard:<\/td> <td><span class='cplate bgblue'>    <\/span><\/td><\/tr> <tr><td>Draft Standard (old designation):<\/td> <td><span class='cplate bgcyan'>    <\/span><\/td><\/tr> <tr><td>Internet Standard:<\/td> <td><span class='cplate bggreen'>    <\/span><\/td><\/tr> <tr><td>Historic:<\/td> <td><span class='cplate bggrey'>    <\/span><\/td><\/tr> <tr><td>Obsolete:<\/td> <td><span class='cplate bgbrown'>    <\/span><\/td><\/tr> <\/table>\";\n function showElem(id) {\n var elem = document.getElementById(id);\n elem.innerHTML = eval(id+\"_html\");\n elem.style.visibility='visible';\n }\n function hideElem(id) {\n var elem = document.getElementById(id);\n elem.style.visibility='hidden'; \n elem.innerHTML = \"\";\n }\n \/\/ -->\n <\/script>\n<\/head>\n<body onload=\"addHeaderTags()\">\n <div style=\"height: 13px;\">\n <div onmouseover=\"this.style.cursor='pointer';\"\n onclick=\"showElem('legend');\"\n onmouseout=\"hideElem('legend')\"\n\t style=\"height: 6px; position: absolute;\"\n class=\"pre noprint docinfo bgred\"\n title=\"Click for colour legend.\" > <\/div>\n <div id=\"legend\"\n class=\"docinfo noprint pre legend\"\n style=\"position:absolute; top: 4px; left: 4ex; visibility:hidden; background-color: white; padding: 4px 9px 5px 7px; border: solid #345 1px; \"\n onmouseover=\"showElem('legend');\"\n onmouseout=\"hideElem('legend');\">\n <\/div>\n <\/div>\n<span class=\"pre noprint docinfo top\">[<a href=\"..\/html\/\" title=\"Document search and retrieval page\">Docs<\/a>] [<a href=\"https:\/\/tools.ietf.org\/id\/draft-nottingham-http-portal-02.txt\" title=\"Plaintext version of this document\">txt<\/a>|<a href=\"\/pdf\/draft-nottingham-http-portal-02.txt\" title=\"PDF version of this document\">pdf<\/a>|<a href=\"\/id\/draft-nottingham-http-portal-02.xml\" title=\"XML source for this document\">xml<\/a>|<a href=\"\/id\/draft-nottingham-http-portal-02.html\" title=\"HTML version of this document, from XML2RFC\">html<\/a>] [<a href='https:\/\/datatracker.ietf.org\/doc\/draft-nottingham-http-portal' title='IESG Datatracker information for this document'>Tracker<\/a>] [<a href=\"mailto:draft-nottingham-http-portal@tools.ietf.org?subject=draft-nottingham-http-portal%20\" title=\"Send email to the document authors\">Email<\/a>] [<a href=\"\/rfcdiff?difftype=--hwdiff&url2=draft-nottingham-http-portal-02.txt\" title=\"Inline diff (wdiff)\">Diff1<\/a>] [<a href=\"\/rfcdiff?url2=draft-nottingham-http-portal-02.txt\" title=\"Side-by-side diff\">Diff2<\/a>] [<a href=\"\/idnits?url=https:\/\/tools.ietf.org\/id\/draft-nottingham-http-portal-02.txt\" title=\"Run an idnits check of this document\">Nits<\/a>] <\/span><br \/>\n<span class=\"pre noprint docinfo\"> <\/span><br \/>\n<span class=\"pre noprint docinfo\">Versions: <a href=\".\/draft-nottingham-http-portal-00\">00<\/a> <a href=\".\/draft-nottingham-http-portal-01\">01<\/a> <a href=\".\/draft-nottingham-http-portal-02\">02<\/a> <\/span><br \/>\n<span class=\"pre noprint docinfo\"> <\/span><br \/>\n<pre>\nNetwork Working Group M. Nottingham\nInternet-Draft February 18, 2011\nIntended status: Standards Track\nExpires: August 22, 2011\n\n\n <span class=\"h1\">The Network Authentication Required HTTP Status Code<\/span>\n <span class=\"h1\">draft-nottingham-http-portal-02<\/span>\n\nAbstract\n\n \"Captive portals\" are a commonly-deployed means of obtaining access\n credentials and\/or payment for a network. This memo introduces a new\n HTTP status code as a means of addressing issues found in these\n deployments.\n\n This memo should be discussed on the ietf-http-wg@w3.org mailing\n list, although it is not a work item of the HTTPbis WG.\n\nStatus of this Memo\n\n This Internet-Draft is submitted in full conformance with the\n provisions of <a href=\".\/bcp78\">BCP 78<\/a> and <a href=\".\/bcp79\">BCP 79<\/a>.\n\n Internet-Drafts are working documents of the Internet Engineering\n Task Force (IETF). Note that other groups may also distribute\n working documents as Internet-Drafts. The list of current Internet-\n Drafts is at <a href=\"http:\/\/datatracker.ietf.org\/drafts\/current\/\">http:\/\/datatracker.ietf.org\/drafts\/current\/<\/a>.\n\n Internet-Drafts are draft documents valid for a maximum of six months\n and may be updated, replaced, or obsoleted by other documents at any\n time. It is inappropriate to use Internet-Drafts as reference\n material or to cite them other than as \"work in progress.\"\n\n This Internet-Draft will expire on August 22, 2011.\n\nCopyright Notice\n\n Copyright (c) 2011 IETF Trust and the persons identified as the\n document authors. All rights reserved.\n\n This document is subject to <a href=\".\/bcp78\">BCP 78<\/a> and the IETF Trust's Legal\n Provisions Relating to IETF Documents\n (<a href=\"http:\/\/trustee.ietf.org\/license-info\">http:\/\/trustee.ietf.org\/license-info<\/a>) in effect on the date of\n publication of this document. Please review these documents\n carefully, as they describe your rights and restrictions with respect\n to this document. Code Components extracted from this document must\n include Simplified BSD License text as described in <a href=\"#section-4\">Section 4<\/a>.e of\n\n\n\n<span class=\"grey\">Nottingham Expires August 22, 2011 [Page 1]<\/span>\n<\/pre><!--NewPage--><pre class='newpage'><a name=\"page-2\" id=\"page-2\" href=\"#page-2\" class=\"invisible\"> <\/a>\n<span class=\"grey\">Internet-Draft Network Authentication Required February 2011<\/span>\n\n\n the Trust Legal Provisions and are provided without warranty as\n described in the Simplified BSD License.\n\n\nTable of Contents\n\n <a href=\"#section-1\">1<\/a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . <a href=\"#page-3\">3<\/a>\n <a href=\"#section-2\">2<\/a>. 428 Network Authentication Required . . . . . . . . . . . . . . <a href=\"#page-3\">3<\/a>\n <a href=\"#section-3\">3<\/a>. Security Considerations . . . . . . . . . . . . . . . . . . . . <a href=\"#page-4\">4<\/a>\n <a href=\"#section-4\">4<\/a>. IANA Considerations . . . . . . . . . . . . . . . . . . . . . . <a href=\"#page-4\">4<\/a>\n <a href=\"#appendix-A\">Appendix A<\/a>. Using the 428 Status Code . . . . . . . . . . . . . . <a href=\"#page-4\">4<\/a>\n <a href=\"#appendix-B\">Appendix B<\/a>. Issues Raised by Captive Portals . . . . . . . . . . . <a href=\"#page-5\">5<\/a>\n <a href=\"#appendix-C\">Appendix C<\/a>. Non-HTTP Applications and Techniques . . . . . . . . . <a href=\"#page-6\">6<\/a>\n <a href=\"#appendix-D\">Appendix D<\/a>. Acknowledgements . . . . . . . . . . . . . . . . . . . <a href=\"#page-6\">6<\/a>\n Author's Address . . . . . . . . . . . . . . . . . . . . . . . . . <a href=\"#page-6\">6<\/a>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<span class=\"grey\">Nottingham Expires August 22, 2011 [Page 2]<\/span>\n<\/pre><!--NewPage--><pre class='newpage'><a name=\"page-3\" id=\"page-3\" href=\"#page-3\" class=\"invisible\"> <\/a>\n<span class=\"grey\">Internet-Draft Network Authentication Required February 2011<\/span>\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"section-1\" href=\"#section-1\">1<\/a>. Introduction<\/span>\n\n It has become common for networks to require authentication, payment\n and\/or acceptance of terms of service before granting access.\n Typically, this occurs when accessing \"public\" networks such as those\n in hotels, trains, conference centres and similar networks.\n\n While there are several potential means of providing credentials to a\n network, these are not yet universally supported, and in some\n instances the network administrator requires that information (e.g.,\n terms of service, login information) be displayed to end users.\n\n In such cases, it has become widespread practice to use a \"captive\n portal\" that diverts HTTP requests to the administrator's web page.\n Once the user has satisfied requirements (e.g., for payment,\n acceptance of terms), the diversion is ended and \"normal\" access to\n the network is allowed.\n\n Typically, this diversion is accomplished by one of several possible\n techniques;\n o IP interception - all requests on port 80 are intercepted and send\n to the portal.\n o HTTP redirects - all requests on port 80 are intercepted and an\n HTTP redirect to the portal's URL is returned.\n o DNS interception - all DNS lookups return the portal's IP address.\n\n In each case, the intent is that users connecting to the network will\n open a Web browser and see the portal.\n\n However, because port 80 is used for non-browser traffic, a number of\n issues (see <a href=\"#appendix-B\">Appendix B<\/a>) have been encountered.\n\n This memo introduces a new HTTP status code, 428 Network\n Authentication Required, as a solution to some of these issues.\n <a href=\"#appendix-A\">Appendix A<\/a> outlines how it might be used in typical deployments.\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"section-2\" href=\"#section-2\">2<\/a>. 428 Network Authentication Required<\/span>\n\n This status code indicates that the client should authenticate to\n gain network access before resubmitting the request.\n\n The response body SHOULD indicate how to do this; e.g., with an HTML\n form for submitting credentials.\n\n Responses with the 428 status code MUST NOT be stored by a cache.\n\n\n\n\n\n<span class=\"grey\">Nottingham Expires August 22, 2011 [Page 3]<\/span>\n<\/pre><!--NewPage--><pre class='newpage'><a name=\"page-4\" id=\"page-4\" href=\"#page-4\" class=\"invisible\"> <\/a>\n<span class=\"grey\">Internet-Draft Network Authentication Required February 2011<\/span>\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"section-3\" href=\"#section-3\">3<\/a>. Security Considerations<\/span>\n\n In common use, a response carrying the 428 status code will not come\n from the origin server indicated in the request's URL. This presents\n many security issues; e.g., an attacking intermediary may be\n inserting cookies into the original domain's name space, may be\n observing cookies or HTTP authentication credentials sent from the\n user agent, and so on.\n\n However, these risks are not unique to the 428 status code; in other\n words, a captive portal that is not using this status code introduces\n the same issues.\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"section-4\" href=\"#section-4\">4<\/a>. IANA Considerations<\/span>\n\n The HTTP Status Codes Registry should be updated with the following\n entry:\n\n o Code: 428\n o Description: Network Authentication Required\n o Specification: [ this document ]\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"appendix-A\" href=\"#appendix-A\">Appendix A<\/a>. Using the 428 Status Code<\/span>\n\n This appendix demonstrates a typical use of the 428 status code; it\n is not normative.\n\n A network operator wishing to require some authentication, acceptance\n of terms or other user interaction before granting access usually\n does so by identify clients who have not done so (\"unknown clients\")\n using their MAC addresses.\n\n Unknown clients then have all traffic blocked, except for that on TCP\n port 80, which is sent to a HTTP server (the \"login server\")\n dedicated to \"logging in\" unknown clients, and of course traffic to\n the login server itself.\n\n For example, a user agent might connect to a network and make the\n following HTTP request on TCP port 80:\n\n GET \/index.htm HTTP\/1.1\n Host: www.example.com\n User-Agent: ExampleAgent\n\n Upon receiving such a request, the login server would generate a 428\n response:\n\n\n\n<span class=\"grey\">Nottingham Expires August 22, 2011 [Page 4]<\/span>\n<\/pre><!--NewPage--><pre class='newpage'><a name=\"page-5\" id=\"page-5\" href=\"#page-5\" class=\"invisible\"> <\/a>\n<span class=\"grey\">Internet-Draft Network Authentication Required February 2011<\/span>\n\n\n HTTP\/1.1 428 Network Authentication Required\n Refresh: 0; url=https:\/\/login.example.net\/\n Content-Type: text\/html\n\n <html>\n <head>\n <\/head>\n <body>\n <h1>You are being redirected to log into the network...<\/h1>\n <\/body>\n <\/html>\n\n Here, the 428 status code assures that non-browser clients will not\n interpret the response as being from the origin server, and the\n Refresh header redirects the user agent to the login server (an HTML\n META element can be used for this as well).\n\n Note that the 428 response can itself contain the login interface,\n but it may not be desirable to do so, because browsers would show the\n login interface as being associated with the originally requested\n URL, which may cause confusion.\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"appendix-B\" href=\"#appendix-B\">Appendix B<\/a>. Issues Raised by Captive Portals<\/span>\n\n Since clients cannot differentiate between a portal's response and\n that of the HTTP server that they intended to communicate with, a\n number of issues arise.\n\n One example is the \"favicon.ico\"\n <<a href=\"http:\/\/en.wikipedia.org\/wiki\/Favicon\">http:\/\/en.wikipedia.org\/wiki\/Favicon<\/a>> commonly used by browsers to\n identify the site being accessed. If the favicon for a given site is\n fetched from a captive portal instead of the intended site (e.g.,\n because the user is unauthenticated), it will often \"stick\" in the\n browser's cache (most implementations cache favicons aggressively)\n beyond the portal session, so that it seems as if the portal's\n favicon has \"taken over\" the legitimate site.\n\n Another browser-based issue comes about when P3P\n <<a href=\"http:\/\/www.w3.org\/TR\/P3P\/\">http:\/\/www.w3.org\/TR\/P3P\/<\/a>> is supported. Depending on how it is\n implemented, it's possible a browser might interpret a portal's\n response for the p3p.xml file as the server's, resulting in the\n privacy policy (or lack thereof) advertised by the portal being\n interpreted as applying to the intended site. Other Web-based\n protocols such as WebFinger\n <<a href=\"http:\/\/code.google.com\/p\/webfinger\/wiki\/WebFingerProtocol\">http:\/\/code.google.com\/p\/webfinger\/wiki\/WebFingerProtocol<\/a>>, CORS\n <<a href=\"http:\/\/www.w3.org\/TR\/cors\/\">http:\/\/www.w3.org\/TR\/cors\/<\/a>> and OAuth\n <<a href=\"http:\/\/tools.ietf.org\/html\/draft-ietf-oauth-v2\">http:\/\/tools.ietf.org\/html\/draft-ietf-oauth-v2<\/a>> may also be\n\n\n\n<span class=\"grey\">Nottingham Expires August 22, 2011 [Page 5]<\/span>\n<\/pre><!--NewPage--><pre class='newpage'><a name=\"page-6\" id=\"page-6\" href=\"#page-6\" class=\"invisible\"> <\/a>\n<span class=\"grey\">Internet-Draft Network Authentication Required February 2011<\/span>\n\n\n vulnerable to such issues.\n\n Although HTTP is most widely used with Web browsers, a growing number\n of non-browsing applications use it as a substrate protocol. For\n example, WebDAV <<a href=\"http:\/\/tools.ietf.org\/html\/rfc4918\">http:\/\/tools.ietf.org\/html\/rfc4918<\/a>> and CalDAV\n <<a href=\"http:\/\/www.ietf.org\/rfc\/rfc4791.txt\">http:\/\/www.ietf.org\/rfc\/rfc4791.txt<\/a>> both use HTTP as the basis (for\n network filesystem access and calendaring, respectively). Using\n these applications from behind a captive portal can result in\n spurious errors being presented to the user, and might result in\n content corruption, in extreme cases.\n\n Similarly, other non-browser applications using HTTP can be affected\n as well; e.g., widgets <<a href=\"http:\/\/www.w3.org\/TR\/widgets\/\">http:\/\/www.w3.org\/TR\/widgets\/<\/a>>, software\n updates, and other specialised software such as Twitter clients and\n the iTunes Music Store.\n\n It should be noted that it's sometimes believed that using HTTP\n redirection to direct traffic to the portal addresses these issues.\n However, since many of these uses \"follow\" redirects, this is not a\n good solution.\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"appendix-C\" href=\"#appendix-C\">Appendix C<\/a>. Non-HTTP Applications and Techniques<\/span>\n\n This memo does not address non-HTTP applications, such as IMAP, POP,\n or even TLS-encapsulated HTTP. Since captive portals almost always\n target Web browsers (has anyone ever seen one that inserts an e-mail\n into your inbox asking you to authenticate?), this is appropriate.\n\n Instead, it is anticipated that well-behaved portals will block all\n non-HTTP ports (especially port 443) until the user has successfully\n authenticated.\n\n Overall, there may also be an interesting discussion to be had about\n improving network access methods to the point where a user interface\n can be presented for the same purposes, without resorting to\n intercepting HTTP traffic. However, since such a mechanism would by\n necessity require modifying the network stack and operating system of\n the client, this memo takes a more modest approach.\n\n\n<span class=\"h2\"><a class=\"selflink\" name=\"appendix-D\" href=\"#appendix-D\">Appendix D<\/a>. Acknowledgements<\/span>\n\n The author takes all responsibility for errors and omissions.\n\n\n\n\n\n\n\n<span class=\"grey\">Nottingham Expires August 22, 2011 [Page 6]<\/span>\n<\/pre><!--NewPage--><pre class='newpage'><a name=\"page-7\" id=\"page-7\" href=\"#page-7\" class=\"invisible\"> <\/a>\n<span class=\"grey\">Internet-Draft Network Authentication Required February 2011<\/span>\n\n\nAuthor's Address\n\n Mark Nottingham\n\n Email: mnot@mnot.net\n URI: <a href=\"http:\/\/www.mnot.net\/\">http:\/\/www.mnot.net\/<\/a>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nNottingham Expires August 22, 2011 [Page 7]\n\n<\/pre><br \/>\n<span class=\"noprint\"><small><small>Html markup produced by rfcmarkup 1.111, available from\n<a href=\"https:\/\/tools.ietf.org\/tools\/rfcmarkup\/\">https:\/\/tools.ietf.org\/tools\/rfcmarkup\/<\/a>\n<\/small><\/small><\/span>\n<\/body><\/html>\n","headers":{"Content-Length":"23200","Content-Location":"draft-nottingham-http-portal-02.html","Accept-Ranges":"bytes","Expires":"Wed, 15 Jul 2015 01:23:56 GMT","Vary":"negotiate,Accept-Encoding","Server":"Apache\/2.2.22 (Debian)","TCN":"choice","Last-Modified":"Thu, 23 Apr 2015 19:37:32 GMT","Connection":"close","ETag":"\"12ce82-5aa0-5146969297700;51a52fe0600c0\"","Cache-Control":"max-age=604800","Date":"Wed, 08 Jul 2015 01:23:56 GMT","Content-Type":"text\/html; charset=UTF-8"},"code":200}},{"response_length":"14","request":{"body":null,"headers":{"User-Agent":"M"},"tor":{"is_tor":false,"exit_name":null,"exit_ip":null},"url":"http:\/\/www.msftncsi.com\/ncsi.txt","method":"GET"},"response":{"body":"Microsoft NCSI","headers":{"Date":"Wed, 08 Jul 2015 01:24:06 GMT","Content-Length":"14","Content-Type":"text\/plain","Connection":"close","Cache-Control":"max-age=30, must-revalidate"},"code":200}}],"check0x20":{"serial_match":true,"name_match":true,"querynames":["Ooni.nu","Ooni.nu","Ooni.nu","Ooni.nu","Ooni.nu"],"answernames":["Ooni.nu","Ooni.nu","Ooni.nu","Ooni.nu"],"SOA_serials":["2015013000","2015013000","2015013000","2015013000"],"result":true}},"data_format_version":"0.2.0","report_filename":"2015-07-07\/20150707T132339Z-CN-AS2907-captive_portal-no_report_id-0.1.0-probe.yaml","test_version":"0.3","bucket_date":"2015-07-07","input_hashes":[],"probe_ip":"127.0.0.1","probe_city":null,"test_helpers":{},"probe_cc":"CN","measurement_start_time":"2015-07-07 13:23:45","id":"e9736506-1925-6375-3aee-ff6ac8b91954","test_runtime":36.6554188728,"backend_version":"1.1.4","input":null,"report_id":"20150707T132339Z_ikhBjJjZMmNMLLtDEKlPiJSoyNzFJajdLLHXmJSgTwDefmQRQp","probe_asn":"AS2907","options":[]}