I'm trying to make a Memcached server respond as if I were using a binary protocol. If possible just command line answers pls, no code snippet in any programming language.
Asked
Active
Viewed 3.0k times
1 Answers
18
Just use:
echo -e '\x80' | nc host port
Florin Asăvoaie
- 6,932
- 22
- 35
-
1I needed to send two bytes; this worked for me: `echo -e '\x04''\x03' | nc host port` – 11101101b Oct 02 '15 at 14:30
-
4You do not need to quote every escape sequence, just leave it between the same single quotes. – Florin Asăvoaie Jan 14 '16 at 09:29