News for hackers. Stuff that matters.
Re:Firefox and IE's "View source" can be spoofed to show any... by there on Thursday September 08, 2011 @05:55PM (#2975828)
Thankfully, curl can't be tricked in such a manner.

fetch http://jcs.org/tmp/nothing.html through curl:

      jcs@air:~> curl -s http://jcs.org/tmp/nothing.html 
      there is really nothing here, i can promise you that.          
but you just aren't seeing the content.

     jcs@air:~> curl -s http://jcs.org/tmp/nothing.html | vis
     View source in Firefox. \^H\^H\^H\^H\^H\^H\^H\^H\^H\^H\^H[...]
Re:Firefox and IE's "View source" can be spoofed to show any... by code_duck on Thursday September 08, 2011 @10:52PM (#2976586)
Clever and true... I didn't say I'd view it in the terminal, though!

    curl http://jcs.org/tmp/nothing.html | vim -