1

I have this command:

echo PUT /123 HTTP/1.0\r\n\r\n | ncat 127.0.0.1 5000

which is returning HTTP 400, because echo is escaping the backslashes. I do not want the backslashes escaped because HTTP cannot understand that.

I tried:

  • Enclosing in quotes (unfortunately echo prints those as well)

  • Replacing \ with \\, \\\ and ^\

Neither seem to work. Seems like any time it sees a \, it adds another to it. Any help is appreciated. Thanks!

Kiith Nabaal
  • 366
  • 2
  • 5
  • 16

0 Answers0