Skip to content

Instantly share code, notes, and snippets.

@bensonk
Created April 17, 2012 18:42
Show Gist options
  • Save bensonk/2408123 to your computer and use it in GitHub Desktop.
Save bensonk/2408123 to your computer and use it in GitHub Desktop.
Reddit's headers are funny
[work] bensonk@thay ~ $ nc www.reddit.com 80
GET / HTTP/1.1
Host: www.reddit.com
Connection: keep-alive
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
Accept: text/html
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: djdt=hide; sessionid=5b192a9ec238e8a4a16e87729b84fc52; __utma=1.800606738.1333945678.1334169935.1334174604.12; __utmz=1.1333945678.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Set-Cookie: reddit_first=%7B%22organic_pos%22%3A%201%2C%20%22firsttime%22%3A%20%22first%22%7D; Domain=reddit.com; expires=Thu, 31 Dec 2037 23:59:59 GMT; Path=/
Server: '; DROP TABLE servertypes; --
Date: Tue, 17 Apr 2012 18:41:13 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Connection: Transfer-Encoding
@tsnow
Copy link

tsnow commented Jul 15, 2012

Little johnny ; drop tables; -- returns!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment