Hi, this is my first post, so sorry with something in it is wrong.
I have an ESP8266 that i want to use as a Serial/TCP bridge between my equipment and a WebServer. The idea is to let the ESP8266 handle all the Wifi stuff, so my microcontroller just send the POST commands through it for my application. I am using the ESP8266WiFi.h and WiFiClient.h libraries. It already works like I want, but I am having trouble if there is a proxy involved. For a proxy, I use the proxy server as host and its respective port:
if (!client.connect(host, port)) {
Serial.println("connection failed");
return;
}
Serial.println("connection sucessful");
And then just use the POST command with "host: mywebserver" and it works like a charm.
The problem is when the proxy has a login and password to authenticate. How should I proceed? Do I have to put some parameter in the POST command? Or maybe send something to the proxy server?
Thanks in advance.