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.

1 Answer 1


Just use:

echo -e '\x80' | nc host port
  • 1
    I needed to send two bytes; this worked for me: echo -e '\x04''\x03' | nc host port
    – 11101101b
    Oct 2, 2015 at 14:30
  • 4
    You do not need to quote every escape sequence, just leave it between the same single quotes. Jan 14, 2016 at 9:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy