• I forgot to mention that I had tried that one too.
    Unfortunately I got the same result:

    function getHttp(options, callback) {
    
      http.get(options, function(res) {
        print("available: " + res.available()); //returns 168
        print("Content-Length: " + res.headers['Content-Length']);  //returns 300
        var content = "";
    
        res.on('data', (data) => content+=data);
        res.on('close', (data) => print("close: " + content))
        res.on('error', (e) => print("Error: " + e));
    
      }).on('error', function(e) {
        print("ERROR", e);
      });
    }
    

    Results:

    available: 168
    Content-Length : 300
    close: [{"type":"Positioning","accelerometer":t­rue,"trilateration":true,"globalPosition­ing":true},{"type":"EventCadence","smart­Mode":true},{"type":"Environmental","hum­idity":t

    I only added the "manual read" after it failed the first time, just to see if I could force it to read all 300 characters, which didnt work either because theres only 168 bytes available.

About

Avatar for Nadnerb @Nadnerb started