Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is websocket testing possible from behind a corporate proxy? #55

Open
ushamganesh opened this issue May 10, 2016 · 1 comment
Open

Is websocket testing possible from behind a corporate proxy? #55

ushamganesh opened this issue May 10, 2016 · 1 comment

Comments

@ushamganesh
Copy link

I have read in some issues here that proxy is not supported by Jetty and hence websocket sampler proxy setting is not possible. I would like to know if that is not supported even now or should I get a newer version somewhere?

Is there an alternative to make websocket testing possible with proxy?
I am able to send HTTP request and receive response successfully after configuring proxy server details.

@joakime
Copy link

joakime commented Nov 15, 2018

Proxy is supported by Jetty's WebSocketClient implementation.

WebSocketClient wsclient = new WebSocketClient();
ProxyConfiguration proxyConfig = wsclient.getHttpClient().getProxyConfiguration();
HttpProxy proxy = new HttpProxy("proxyhost",proxyport);
proxyConfig.getProxies().add(proxy);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants