Breedly
Breedly

Reputation: 14226

Equivalent of `curl -v`, but as a server not a client?

I know that curl is just for client side stuff, and I find it's curl -v tremendously useful for debugging HTTP issues.

However, I'm writing a client at the moment, and would love to see a verbose output of the data as it comes in on the server. What's the best way to do this? Is there a simple command line utility?

Things I want to see:

  1. When the headers come in.
  2. Does the connection stay open until the body is received?
  3. When does the connection/message terminate?

Upvotes: 0

Views: 56

Answers (1)

srcr
srcr

Reputation: 56

You could give netcat (http://nc110.sourceforge.net) a try.

netcat -l 80

This way netcat starts listening on port 80 an you could use a browser to connect to that.

This is my first answer so hope I'm doing this correct.

Upvotes: 4

Related Questions