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

Does this SDK client support empty proxy username and password? #2559

Closed
cabrillosa opened this issue Jan 18, 2024 · 2 comments
Closed

Does this SDK client support empty proxy username and password? #2559

cabrillosa opened this issue Jan 18, 2024 · 2 comments

Comments

@cabrillosa
Copy link

Hello, I would like to ask if azure-iot-sdk-c can be connected to via a proxy server that does not require a username and password?

====

        proxy_options.host_address  = proxy_options_->host_address;
        proxy_options.port          = proxy_options_->port;
        proxy_options.username      = proxy_options_->username; // <-- This is empty string ""
        proxy_options.password      = proxy_options_->password; // <-- This is empty string ""

        IoTHubDeviceClient_LL_SetOption(device_ll_handle_, OPTION_HTTP_PROXY, &proxy_options);

====

Thank you.

@ericwol-msft
Copy link
Collaborator

Have you tried setting these to NULL? By setting these to a string value, the SDK will transmit these values, even if they are empty strings.

https://github.com/Azure/azure-c-shared-utility/blob/13ea9a78c54ab1e27678b86bc5a7dc52c6933000/adapters/httpapi_curl.c#L964

@cabrillosa
Copy link
Author

Thanks @ericwol-msft . Closing this now.

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

No branches or pull requests

2 participants