Print the raw http request with cowboy

Hello,

I am working on a Java application and I fail to upload a file in a multipart form data http request. But I works when I upload the file with curl CLI for instance.

So what I want to do is send the two requests (curl and Java-based) to a local server which would simply print what it receives. I want to understand why what I do is wrong, as it seems correct according to the docs.

So I want to build this simple tool for myself : a simple http server that just prints to the terminal every request it receives. I need to see the raw HTTP request : the raw headers, the post parts delimiters, etc.

Does a simple way of doing this exists with cowboy or any other http server ? (yaws, misultin, mochiweb, elli, anyone would do).

Thank you.