{"id":438,"date":"2009-07-25T12:13:47","date_gmt":"2009-07-25T04:13:47","guid":{"rendered":"http:\/\/blog.lolyco.com\/sean\/?p=438"},"modified":"2009-07-25T12:16:05","modified_gmt":"2009-07-25T04:16:05","slug":"file-contents-hex-dump-at-poditroniccom","status":"publish","type":"post","link":"https:\/\/blog.lolyco.com\/sean\/2009\/07\/25\/file-contents-hex-dump-at-poditroniccom\/","title":{"rendered":"File contents hex dump at poditronic.com"},"content":{"rendered":"<div id=\"attachment_439\" style=\"width: 310px\" class=\"wp-caption alignright\"><a href=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/07\/poditronic_hexdump.jpeg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-439\" class=\"size-medium wp-image-439\" title=\"Hex dump of image file\" src=\"http:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/07\/poditronic_hexdump-300x285.jpg\" alt=\"Hex dump of image file\" width=\"300\" height=\"285\" srcset=\"https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/07\/poditronic_hexdump-300x285.jpg 300w, https:\/\/blog.lolyco.com\/sean\/wp-content\/uploads\/2009\/07\/poditronic_hexdump.jpeg 684w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-439\" class=\"wp-caption-text\">Hex dump of image file<\/p><\/div>\n<p>Just added a <a title=\"Hex dump files from URL\" href=\"http:\/\/poditronic.com\/hexdump.html\">hex dump page at poditronic.com<\/a> &#8211; very similar code to the &#8220;View Server HTTP headers&#8221; page, but could be useful to some. The page currently loads just the first 512 bytes of the content at some URL, and present the bytes in a table. Printable bytes are displayed as-is, non-printable are displayed as a hex byte. I wrote the page because I wanted to explain to someone what meta-data is stored with an image. A web page is a big improvement in accessibility over asking someone to open a terminal and type in commands!<\/p>\n<p>I had to remove the Referer field because one server we wanted to look at images on was returning 404 Not Found. I imagine this is a form of hotlinking protection. Sending a request to the server without the Referer field resulted in the image being returned as expected. An obvious future enhancement would be to provide a toggle for Referer field, and perhaps also an option to change the number of bytes to display.<\/p>\n<p>It&#8217;s interesting to see what metadata is left in images on the web &#8211; happy fishing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just added a hex dump page at poditronic.com &#8211; very similar code to the &#8220;View Server HTTP headers&#8221; page, but could be useful to some. The page currently loads just the first 512 bytes of the content at some URL, and present the bytes in a table. Printable bytes are displayed as-is, non-printable are displayed [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,3,45],"tags":[34,46,105],"class_list":["post-438","post","type-post","status-publish","format-standard","hentry","category-breaktime","category-software","category-spinneret","tag-network","tag-poditronic","tag-software"],"_links":{"self":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/comments?post=438"}],"version-history":[{"count":3,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/438\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/posts\/438\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/media?parent=438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/categories?post=438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lolyco.com\/sean\/wp-json\/wp\/v2\/tags?post=438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}