Created
October 5, 2011 03:10
-
-
Save pete/1263527 to your computer and use it in GitHub Desktop.
A dude has posed a question: https://mobile.twitter.com/djdonnell/status/121375620440670208
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The "/" has to be there before rack even gets to it; you cant do a GET without a path of some sort. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pete@aku:~$ echo -ne 'GET / HTTP/1.0\r\n\r\n' | netcat localhost 80 | |
| HTTP/1.0 200 OK | |
| [elided] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pete@aku:~$ echo -ne 'GET HTTP/1.0\r\n\r\n' | netcat localhost 80 | |
| HTTP/1.0 400 Bad Request | |
| Content-Type: text/html | |
| Content-Length: 349 | |
| Connection: close | |
| Date: Wed, 05 Oct 2011 03:05:54 GMT | |
| Server: lighttpd/1.4.28 | |
| [elided] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment