Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
587 stars 739 forks source link

How to use "http_proxy_io" with "httpapi_compact"? #495

Closed mohamedibrahimabdelrahman33 closed 6 years ago

mohamedibrahimabdelrahman33 commented 6 years ago

Description of the issue:

currently i'm using HTTP protocol to send massages to the HUB and now i'm trying to use proxy configuration, so i want to use "http_proxy_io" file with httpapi_compact but i found that the proxy option is not in the "httpapi_compact" file, so what should i do? # Code sample exhibiting the issue: Currently I'm using the example 'iothub_client_sample_http' # Console log of the issue:
mohamedibrahimabdelrahman33 commented 6 years ago

hey @jebrando , is there any update regarding my question?

jebrando commented 6 years ago

@mohamedibrahimabdelrahman33 We don't want to make enhancements to httpapi_compact, due to the lack of http protocol features. Is there any reason you are using http for communications and not MQTT?

mohamedibrahimabdelrahman33 commented 6 years ago

hey @jebrando , due to the project requirements i have to use the http protocol, because Corporate networks typically block most outgoing ports. and Port 80 is not optimal for MQTT traffic, and i know that i can Use MQTT over websockets. This may work with some HTTP Proxies if websockets are supported, but not definitely.

jebrando commented 6 years ago

@mohamedibrahimabdelrahman33 We don't have updating http_compact on our backlog at the moment. Also are you using iothub client to send messages, I am unaware of http_compact being compatible with iothub client.

mohamedibrahimabdelrahman33 commented 6 years ago

yes, i'm using iothub client to send messages, and httpapi_compact works fine with iothub client.

jspaith commented 6 years ago

@mohamedibrahimabdelrahman33 - As Jelani said, the http_compact at this stage of its life cycle is only going to be updated for security issues. So from my read of this thread I think you're going as far as we can get you, but I want to double check to see if there's other concerns before I close this out.

Thanks

jspaith commented 6 years ago

I'm closing since as I said, I think we've addressed your concerns as we can here. If I've misread or you have other followups, as always reactivate this or open a new issue.

az-iot-builder-01 commented 6 years ago

@mohamedibrahimabdelrahman33, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey