-
Notifications
You must be signed in to change notification settings - Fork 12
HTTPS support #191
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
Comments
Thanks for opening this issue! A maintainer will review this in the next few days and explicitly select labels so you know what's going on. If no reviewer appears after a week, a reminder will be sent out. |
Updates merged to develop. Thanks again, @xtrinch 👍 |
This issue has been closed. If you wish to re-open it please provide additional information. |
Are there any plans to support HTTPS?
I am trying to use https://dexplorer.ark.io @ port 8443 as the node, and it seems that
http://
is hardcoded in: https://github.com/ArkEcosystem/cpp-client/blob/751212f0abb395d3ac7b9859b0538842118d4080/src/http/iot/http.cpp#L41I've made a workaround by removing the forced prefix and just passing the entire URL to cpp-client:
Ark::Client::Connection<Ark::Client::Api> connection("https://dexplorer.ark.io", 8443);
One other modification was necessary in:
https://github.com/ArkEcosystem/cpp-client/blob/751212f0abb395d3ac7b9859b0538842118d4080/src/host/host.cpp#L44
as this will match the first
:
in the URL and malform the url intohttps8443/api...
, so it should use a match last:snprintf(&out[out.find_last_of(":") + 1U], PORT_MAX_STRING_LEN, "%d", this->port_);
Other than that no additional modifications were necessary for HTTPS to work.
(& I am using nodemcu-32s with arduino framework)
The text was updated successfully, but these errors were encountered: