简体   繁体   中英

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 ?

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:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM