{"id":377,"date":"2003-05-06T00:35:55","date_gmt":"2003-05-06T04:35:55","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=377"},"modified":"2003-05-06T00:35:55","modified_gmt":"2003-05-06T04:35:55","slug":"requesting-a-url-securely","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2003\/05\/06\/requesting-a-url-securely\/","title":{"rendered":"Requesting a URL securely"},"content":{"rendered":"<p>We had a thread going at work about finding out if the user is requesting a URL securely, ie: using HTTPS.  Various methods were thrown about: getScheme(), getProtocol(), getServerPort()&#8230; We missed the most obvious one: <a href=\"http:\/\/java.sun.com\/webservices\/docs\/ea2\/api\/javax\/servlet\/ServletRequest.html#isSecure()\">isSecure()<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We had a thread going at work about finding out if the user is requesting a URL securely, ie: using HTTPS. Various methods were thrown about: getScheme(), getProtocol(), getServerPort()&#8230; We missed the most obvious one: isSecure()<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/377"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}