1

Generic HTTP server that just dumps POST requests?

view story
linux-howto

http://unix.stackexchange.com – I am looking for a command line tool that listens on a given part, happily excepts every HTTP POST request and dumps it. I want to use it for testing purposes, i.e. for testing clients that issue HTTP POST requests. That means I am searching the counterpart to curl -F (which I can use to send test HTTP POSTs to a HTTP server). Perhaps something like socat TCP4-LISTEN:80,fork,bind=127.0.0.1 ... - but socat is not enough because it does not talk HTTP. (HowTos)