{"id":1462,"date":"2020-03-18T09:11:03","date_gmt":"2020-03-18T15:11:03","guid":{"rendered":"http:\/\/jaredrobinson.com\/blog\/?p=1462"},"modified":"2020-03-27T15:17:00","modified_gmt":"2020-03-27T21:17:00","slug":"captive-portal-detection","status":"publish","type":"post","link":"https:\/\/jaredrobinson.com\/blog\/captive-portal-detection\/","title":{"rendered":"Captive portal detection"},"content":{"rendered":"<p>I did a wireshark dump on my Ubuntu 18.04 laptop and noticed that both Firefox and Ubuntu do captive portal detection. Of the two, I think the Firefox method is simpler to implement and use.<\/p>\n<p>Firefox does an HTTP GET on http:\/\/detectportal.firefox.com\/success.txt<br \/>\nResponds with HTTP 200 OK with a Content Type of text\/plain and a body of &#8220;success\\n&#8221;<\/p>\n<p>Ubuntu does an HTTP GET on http:\/\/connectivity-check.ubuntu.com<br \/>\nResponds with HTTP 204 and a header of X-NetworkManager-Status: online\\r\\n<\/p>\n<p>Notice that captive portal detection uses an unencrypted transport &#8212; http, and not https.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I did a wireshark dump on my Ubuntu 18.04 laptop and noticed that both Firefox and Ubuntu do captive portal detection. Of the two, I think the Firefox method is simpler to implement and use. Firefox does an HTTP GET on http:\/\/detectportal.firefox.com\/success.txt Responds with HTTP 200 OK with a Content Type of text\/plain and a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/jaredrobinson.com\/blog\/captive-portal-detection\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Captive portal detection&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17],"tags":[],"class_list":["post-1462","post","type-post","status-publish","format-standard","hentry","category-programming","category-tech"],"_links":{"self":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/comments?post=1462"}],"version-history":[{"count":2,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1462\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/posts\/1462\/revisions\/1465"}],"wp:attachment":[{"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/media?parent=1462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/categories?post=1462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaredrobinson.com\/blog\/wp-json\/wp\/v2\/tags?post=1462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}