just tried it with my own server (http://www.jumware.com) and got it working with this:
cmd = 'GET ' + adr + ' HTTP/1.0\r\n Host:' + host + '\r\n\r\n';
where host="JUMWare.com" and adr="/Juergen/index.htm"
trying the same with host="Espruino.com" and adr="/modules/servo.js" returns a 404 from mini.morphyre.com
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello Gordon,
just tried it with my own server (http://www.jumware.com) and got it working with this:
cmd = 'GET ' + adr + ' HTTP/1.0\r\n Host:' + host + '\r\n\r\n';
where host="JUMWare.com" and adr="/Juergen/index.htm"
trying the same with host="Espruino.com" and adr="/modules/servo.js" returns a 404 from mini.morphyre.com
using host="http://www.Espruino.com" and adr="/modules/servo.js" gives a totally strange feedback, echo of command is this: "Host:http://www.Espruino.comrvo.js"which is very strange in my eyes
testing with a subdomain from my server it works fine
host="JUMFlot.JUMWare.com" adr="/"
hope this helps a little bit for your testing.