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.


Just use:

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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.