You are reading a single comment by @loopMasta and its replies. Click here to read the full conversation.
  • Is it possible to get the data of a post request from within the http.createServer callback?

    http.createServer(function(req, res) {
        if (req.method == "GET") {
            // do get stuff
        } else if (req.method == "POST") {
            // save post data to sd-card
        }
    }).listen(port);
    
About

Avatar for loopMasta @loopMasta started