I'm trying to test a webserver with some HTTP request written in a file.
GET / HTTP/1.1\r\n\r\n
Right now I'm feeding that file to netcat like this:
cat files | nc localhost 80
However, the \r\n in the files are transfered directly to webserver(resulting in 4 chars, i.e. '\','r','\','n'). How can I feed that file so that chars are escaped correctly?