I am having a strange problem with express for Node.js. It is unable to get post requests from the client. The get request works, but for some reason the post request is not working.
Here is some simple code below that gives me an error:
var express = require('express');
var app = express();
app.post('/', function(req, res){
    res.end('Express post page!');
});
app.listen(4001);
When I try and visit the page in the browser it says: Cannot GET /
Again when I use a get request it works fine, but when I try and use a post request it gives me this error. Any help would be appreciated.
P.S. I am using the latest version of Express 4.4.5
Cannot GET /suggests that you're trying to do a GET request, and not a POST.