Update:
Found it. You need to change 2 lines in _C008.ino, recompile and upload the new binary.
Code: Select all
Protocol[protocolCount].usesAccount = true;
Protocol[protocolCount].usesPassword = true;
There are actually 2 more edits that need to be done in _C008.ino.
Add this section to the very top of the HTTPSend() method.
Code: Select all
// START Borrowed from _C001
String authHeader = "";
if ((SecuritySettings.ControllerUser[0] != 0) && (SecuritySettings.ControllerPassword[0] != 0))
{
base64 encoder;
String auth = SecuritySettings.ControllerUser;
auth += ":";
auth += SecuritySettings.ControllerPassword;
authHeader = "Authorization: Basic " + encoder.encode(auth) + " \r\n";
}
// END Borrowed from _C001
Code: Select all
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + hostName + "\r\n" +
"Connection: close\r\n\r\n");
Code: Select all
client.print(String("GET ") + url + " HTTP/1.1\r\n" +
"Host: " + host + "\r\n" + authHeader +
"Connection: close\r\n\r\n");