9

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.

16

Just use:

echo -e '\x80' | nc host port
2
  • 1
    I needed to send two bytes; this worked for me: echo -e '\x04''\x03' | nc host port – 11101101b Oct 2 '15 at 14:30
  • 4
    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