Search code examples
pythonwebsocketload-testingstress-testingthor

thor websocket load testing - add custom http header in web socket handshake request


I am using thor for load testing my twisted based autobahn websocket server. For authentication purposes my websocket application need a custom http header (Authorization : Bearer token) in websocket handshake request as part of authentication. How can I do this ?


Solution

  • It doesn't look like thor supports adding headers so you either need to patch it to add this support or consider another tool like: