Skip to content

POST request payload #6

@kw4n

Description

@kw4n

What's the correct way to read POST request payload? I'm using connect-xcors and I can't seem to find where POST payload is stored.

  var server = connect.createServer(
      connect.logger(),
      CORS(options),
      connect.bodyParser(), function(req,res) {
           var foo = req.body.foo; /* this is where bodyParser() stores the payload */
           res.end();
      }
 )

I first thought it was connect.bodyParser() that was messing with me but removing that didn't solve the issue. All help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions