Hi Dan,

I hope Colin doesn't mind if I jump in here with some ideas for you. I hope you don't mind either. I'm sure Colin will respond when he sees your post.

At your lines 193-4, here are the two statements:

// OLD: u = "http://" + username + ":" + password + "@" + ip_address + url_page;
u = "http:\\++:++@+192.168.1.18+192.168.1.18/index.htm";


The question is - do you need to provide the username and password or not? If not, then simply build the URL this way:

u = "http://192.168.1.18/index.htm";


If you do need username and password, then just type them in place below (whatever they are). You may have to be careful about special characters in the password part:

u = "http://username[colon]password@192.168.1.18/index.htm";

In this version you have all the parts you need, the username, the password, the ip address (192.168.1.18), and the url page (index.htm).

The statement you constructed won't work, as you discovered.
- the double-backslash at the start will be interpreted as just a single backslash. This is a javascript construct. If you're curious about this, go to https://www.w3schools.com/js/js_strings.asp, and scroll down to "Escape Character".

- the "pluses" in the OLD version indicate concatenation for the various string parts, and should only be used when you have mixed string literals and string variables. Your version has an IP address part that looks like "++:++@+192.168.1.18+192.168.1.18".

Alternatively, you can just use the OLD format and put in your information in the variables at lines 59-61, and 68. If you do this, and don't need the username and password, Colin's line 194 will be sufficient.

Similarly for your code at line 247.

I hope this helps, but if you need more help understanding this, please ask.