-
• #2
Not yet - I just created an issue for this though: https://github.com/espruino/Espruino/issues/226
You can hack around it by looking at the actual data received though:
function pageHandler(req, res) { console.log(req["dRcv"].substr(req["dRcv"].indexOf("\r\n\r\n")+4)); res.writeHead(200, {'Content-Type': 'text/html'}); res.write('<html><body><form method="post"><textarea name="foo"></textarea><input type="submit"></form></body></html>'); res.end(); }
However it is an internal variable so it may change in the future.
-
• #3
Thank you. Thats exactly what i was looking for.
Is it possible to get the data of a post request from within the http.createServer callback?