You are reading a single comment by @Wilberforce and its replies. Click here to read the full conversation.
  • Works for me with latest build from github:

    >process.env
    ={
      "VERSION": "1v94.221",
      "BUILD_DATE": "Dec 14 2017",
      "BUILD_TIME": "18:16:22",
      "GIT_COMMIT": "1068563563218c4d427d76b648bc512e5452073­f",
      "BOARD": "ESP32",
      "CHIP": "ESP32",
      "CHIP_FAMILY": "ESP32",
      "FLASH": 0, "RAM": 524288,
      "SERIAL": "240ac400-2f90",
      "CONSOLE": "Serial1",
      "EXPORTS": { "jsvLock": 1074615792, "jsvLockAgainSafe": 1074615936, "jsvUnLock": 1074618520, "jsvSkipName": 1074634588,
        "jsvMathsOp": 1074644660, "jsvMathsOpSkipNames": 1074647168, "jsvNewFromFloat": 1074630436, "jsvNewFromInteger": 1074630348, "jsvNewFromString": 1074629712,
        "jsvNewFromBool": 1074630408, "jsvGetFloat": 1074638992, "jsvGetInteger": 1074633396, "jsvGetBool": 1074639572, "jspeiFindInScopes": 1074660864,
        "jspReplaceWith": 1074660596, "jspeFunctionCall": 1074671028, "jspGetNamedVariable": 1074662364, "jspGetNamedField": 1074662752, "jspGetVarNamedField": 1074662868,
        "jsvNewWithFlags": 1074629272 }
     }
    
    var http = require("http");
    http.get("https://www.google.com", function(res) {
      res.on('data', function(data) {
        console.log(data);
      });
    });
    
    =httpCRq { "type": 5,
      "#onconnect": function (res) { ... },
      "res": httpCRs {  },
      "opt": {
        "protocol": "https:",
        "method": "GET",
        "host": "http://www.google.com",
        "path": "/",
        "pathname": "/",
        "search": null, "port": null, "query": null },
      "dSnd": "GET / HTTP/1.1\r\nU" ... "ww.google.com\r\n\r\n",
      "sckt": 4 }
    <HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
    <TITLE>302 Moved</TITLE></HEAD><BO
    DY>
    <H1>302 Moved</H1>
    The document has moved
    <A HREF="https://www.google.co.nz/?gfe_rd=c­r&amp;dcr=0&amp;ei=MxYyWsjLDJPr8wf5r7CYA­g">here</A>.
    </BODY></HTML>
    
About

Avatar for Wilberforce @Wilberforce started