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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.