{"id":364,"date":"2007-12-08T15:33:26","date_gmt":"2007-12-08T20:33:26","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/n1zyy\/tutorials\/telnet-80\/"},"modified":"2007-12-08T15:33:26","modified_gmt":"2007-12-08T20:33:26","slug":"telnet-80","status":"publish","type":"page","link":"https:\/\/blogs.n1zyy.com\/n1zyy\/tutorials\/telnet-80\/","title":{"rendered":"telnet 80"},"content":{"rendered":"<p>Sometimes it&#8217;s useful to connect directly to a webserver, forgoing the use of a web browser. It&#8217;s good for diagnostics stuff.<\/p>\n<p>The obvious part is running &#8220;telnet [hostname] 80&#8221;. But from there?<\/p>\n<p>The <em>correct<\/em> way is to use HTTP\/1.1 and specify a HOST. This way it&#8217;s compatible with virtual hosts, which have been in vogue for like a decade. Most advice still has you using HTTP\/1.0. That&#8217;s not always a good solution.<\/p>\n<p>So here&#8217;s what you <em>should<\/em> type:<\/p>\n<blockquote><pre>\nGET \/n1zyy\/index.php HTTP\/1.1 [enter]\nHOST: blogs.n1zyy.com [enter]\n<\/pre><\/blockquote>\n<p>If you use HTTP\/1.1 and don&#8217;t specify a HOST, you&#8217;ll get errors. And if you use HTTP\/1.0, you&#8217;re not able to specify a HOST. (And for the unreasonably literal: [enter] means &#8220;Press enter,&#8221; not &#8220;type &#8216;enter&#8217; inside square brackets.&#8221;)<\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes it&#8217;s useful to connect directly to a webserver, forgoing the use of a web browser. It&#8217;s good for diagnostics stuff. The obvious part is running &#8220;telnet [hostname] 80&#8221;. But from there? The correct way is to use HTTP\/1.1 and &hellip; <a href=\"https:\/\/blogs.n1zyy.com\/n1zyy\/tutorials\/telnet-80\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"parent":59,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-364","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/pages\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/pages\/364\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/pages\/59"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/media?parent=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}