How can I use netcat (nc) to log both raw HTTP requests and responses?

Solution Verified - Updated -

Issue

  • How can I use netcat (nc) to log both raw HTTP requests and responses?
  • I'm using one web service stack, and it gets an HTTP 200 response from the endpoint, but when I use JBossWS I get an HTTP error code (404, 500, 501, etc). How can I tell what is different between the two requests?

Environment

  • Any environment with named pipes and nc (netcat) available.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content