Linux – In Ubuntu, is there something I can run that checks the HTTP requests coming in

httplinuxtcpUbuntuunix

I'm running Node.js. But for some reason, requests are not being caught by the server. (https://stackoverflow.com/questions/9247482/node-js-server-not-receiving-ajax-requests)

Is there any way to check if there's an HTTP request coming in? Ideally, I want to run something that will "listen" for HTTP request, and then prints them as they come in, along with the URl of that http request (if possible)

Best Answer

The standard tool would just be to install and run tcpdump.

A capture filter like this. tcpdump -qn -s 0 -A port 80 would capture and print the every packet destined for port 80 on that system. See the man pages, tcpdump is extremely flexible.