MKR 1010 wifi + ENV behind proxy

HELLO
I have a project to send environment data to Azure Iot Hub, following this IoT Azure Pipeline. In this article I build an end to end… | by Paul Bruffett | Medium

Everything works without a proxy.

But I need to run my Arduino ** behind a proxy. **
I can't find the parameters inside the WiFiNina or MQTT library to set the proxy

Can you suggest anything?

What kind of proxy? A standard HTTP proxy won't work for MQTT. The standard library don't know how to handle proxies. If you have detailed information about your mandatory proxy you might be able to modify the libraries to handle that proxy, given it supports MQTT.

Thanks for replying.
What strikes me as odd is that WifiNina has a feature like BeginEntrerprise.
To connect to a corporate network.
But a corporate network obviously has a proxy!
So how is it possible that WifiNina doesn't have the ability to set up a proxy?
I'm not the one to write a custom library to handle the proxy.
Nowhere is there such a libary written by those who are capable?

Hello

No. Our corporate network doesn't use a proxy.

BeginEnterprise() is used to connect to a PEAP/MSCHAPv2 WiFi network (which is rather seldom used in home environments). That's for the WiFi connection, a proxy is a few layers higher.

That's not handled by the network/IP layer (which is done by WiFiNINA).

I'm not aware of such a library but the WiFiWebClient example can easily be extended to use an HTTP proxy. Connect to the proxy host and port instead of the web server and use the complete URL on the first line instead of just the path.
If your proxy also needs authentication the things get more complex. If that's the case we need detailed information about the proxy which you might not be allowed to post on a public forum.

Thank you pylon.