Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.2$ netcat localhost 36895 <<< 'GET / HTTP/1.1'
- HTTP/1.1 200 Ok
- Content-Type:text/plain
- read(net): Connection reset by peer
- bash-4.2$ netcat localhost 36895 <<< 'WRONG / HTTP/1.1'
- HTTP/1.1 405 Not Supported
- Content-Type:text/plain
- 405 Not Supported
- read(net): Connection reset by peer
- bash-4.2$ netcat localhost 36895 <<< 'GET /missing HTTP/1.1'
- HTTP/1.1 404 Not Found
- Content-Type:text/plain
- 404 Not Found
- read(net): Connection reset by peer
- bash-4.2$ netcat localhost 36895 <<< 'GET /unreadable HTTP/1.1'
- HTTP/1.1 500 Server Error
- Content-Type:text/plain
- 500 Server Error
- read(net): Connection reset by peer
- bash-4.2$ netcat localhost 36895 <<< 'GET /test.txt HTTP/1.1'
- HTTP/1.1 200 Ok
- Content-Type:text/plain
- Plain Text Test File
- read(net): Connection reset by peer
- bash-4.2$ netcat localhost 36895 <<< 'GET /test.html HTTP/1.1'
- HTTP/1.1 200 Ok
- Content-Type:text/html
- <!DOCTYPE html>
- <head>
- <meta charset=iso-8859-1>
- <title></title>
- </head>
- <body>
- <h1>HTML Test Page</h1>
- <p>
- Although served as application/octet-stream,<br>
- the browsers tend to display inline images.<br>
- <img src="apple-touch-icon.png">
- </p>
- </body>
- </html>
- read(net): Connection reset by peer
- bash-4.2$ netcat localhost 36895 <<< 'GET /test.csv HTTP/1.1'
- HTTP/1.1 200 Ok
- Content-Type:application/octet-stream
- CSV,"test file"
- served,"as binary"
- read(net): Connection reset by peer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement