0
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?
@Usavich : please see my final edits. I believe I have solved your problem exactly as requested. Good luck. – shellter – 2011-09-29T02:43:29.433