I am making a request to an ordinary express.js server where it's supposed to parse the param that looks like this:
app.get('/:param', function(req, res) {
// do something
})
This works for 99% of the ordinary cases, but when I try to pass a very long parameter (about 10,000 characters) it fails with 400 Error.
The server doesn't give any other details than just 400 error and I've looked all over the internet but while there does exist a limit to the URL length, that's way above 10,000 and I don't think that's the reason.
Again, shorter urls work just fine with exactly the same code. It's long urls that fail. So my question is:
- Am I mistaken about the limits and this is not supposed to be poossible?
- How can I debug this situation? All I get is 400 error.