Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

enter stomp command using telnet

I am trying to enter the following command in Mac terminal using telnet, however it does not return anything. Which keyboard combination should I use in order to enter the command?( I used ^D ^V ^M, they did not work )

CONNECT
login: admin
passcode: password
like image 637
gray_malkin Avatar asked Jul 11 '26 20:07

gray_malkin


1 Answers

From the STOMP spec:

CONNECT
login: <username>
passcode:<passcode>

^@

The ^@ is a null (control-@ in ASCII) byte. The entire thing will be called a Frame in this doc. The frame starts with a command (in this case CONNECT), followed by a newline, followed by headers in a : with each header followed by a newline. A blank line indicates the end of the headers and beginning of the body (the body is empty in this case), and the null indicates the end of the frame.

To enter the nullbyte ^@ on a Mac OSX terminal:

  • Press control+@
  • Type control+v and then control+m
like image 155
mjn Avatar answered Jul 15 '26 23:07

mjn