I would like to update my IP at the DDNS service on twodns.de
Hardware is an Arduino Nano with w5100 EN module.
With curl this is easy to do.
But how do I send this line with client.print .. commands at the Arduino?
in one line:
curl -v -X PUT -u "email@email.de:12345abcdefg" -d '{"ip_address": "90.91.92.92"}' https://api.twodns.de/hosts/my.test.de
Username : email@email.de
API-Key : 12345abcdefg
90.91.92.92 : my local WAN IP
my.test.de : to be update
Example:
IPAddress server(192,168,2,10);
if (client.connect(server,80))
{
client.println("PUT -u "email@email.de:123........."); ???
}
Does anyone know the solution?