jasonrbriggs / stomp.py

“stomp.py” is a Python client library for accessing messaging servers (such as ActiveMQ or RabbitMQ) using the STOMP protocol (versions 1.0, 1.1 and 1.2). It can also be run as a standalone, command-line client for testing.
Apache License 2.0
491 stars 167 forks source link

host header - CLI support (--vhost) #421

Closed nser77 closed 1 year ago

nser77 commented 1 year ago

Related to #420: now stomp.py will accept --vhost as CLI argument; default is /.

Usage example:

stomp -H 10.1.0.14 -P 61613 -U user -W password -V -S 1.2 --vhost /fake/vhost

STOMP client frame:

STOMP
accept-version:1.2
host:/fake/vhost
login:user
passcode:password

.

STOMP server response frame:

ERROR
message:Bad CONNECT
content-type:text/plain
version:1.0,1.1,1.2
content-length:39

Virtual host '/fake/vhost' access denied.