-
Notifications
You must be signed in to change notification settings - Fork 106
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
Support for HTTP proxy with authentication #661
Comments
No. I'm not sure but it seems that Boost.Beast doesn't support it so mqtt_cpp doesn't support it. You can use the command
for example,
You can connect using 127.0.0.1:10000. |
ah, I see. Interesting, thanks for the link. I'll take a look |
I have made changes to my local copy of the repo to allow mqtt_cpp to support proxy servers. The footprint for my changes is relatively small - a new method was added to tcp_endpoint.cpp and ws_enpoint.cpp to find the lowest stream layer, and client.cpp has setters for the the proxy details and the connect_impl methods were changed to establish a TCP tunnel through the proxy server. I have tested this using the proxy server called Squid and the results are good. Also, the changes do not break any of the existing system tests or unit tests. I don't think that I can easily add new system tests for this, as they would require a live proxy server. |
Question: Does the library have support for HTTP proxies with authentication using the
mqtt_tls_client_ws()
API?For example, the Paho Mqtt library supports HTTP proxies with authentication: eclipse/paho.mqtt.c#542 (comment)
The text was updated successfully, but these errors were encountered: