-
• #27
this was the solution I use long time ago for testing.
-
• #28
here you find a newer one https://github.com/jthomperoo/simple-proxy
-
• #29
Thank you very much MaBe!
-
• #31
My REST API example:
var options = { protocol: "http:", method: 'POST', host: 'XXXX.XXXX.XXXX.XXXX', // Proxy IP path: 'https://endpoint.com/', // Landing URL port: 8888, pathname: "restpath", search: null, query: null, headers: { "Content-Type": "application/json", "Content-Length": content.length } }; var req = require("http").request(options, function (res) { var d = ""; res.on('data', function (data) { if (d.length < 8) d += data; }); res.on('close', function (data) { callback(); }); }); req.on('error', function (e) { callback(); }); req.end(content); } catch (f) { }
-
• #32
btw, I had problems with simple proxy, but the Squid proxy works very well
Thanks MaBe,
Thank you for checking! Now I understand the reason. I think most sites no longer support TLS 1.0/1.1 and TLS 1.2 will be deprecated soon. Unfortunately, the ESP8266 cannot be used for this purpose. An ugly solution. but useful is the http_to_https proxy.