[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Xavante: getting post data
- From: Ross Andrews <ross.andrews@...>
- Date: Tue, 21 Jun 2011 14:28:47 -0500
I am writing a handler for the Xavante web server, to handle AJAX requests. It seems like I'm not able to access any parameters from a POST request, only GET request ones sent through the URL. Here's what I have:
return function(req, res)
res.headers["Content-Type"] = "text/plain"
res.content = fn(req)
Inside the function I pass in (fn), req.params is nil. I've tried adding xavante.httpd.getparams(req), which works fine and populates req.params with URL params, but seems to totally ignore post data.