WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How can write an incoming request contents to a file

  • 1.  How can write an incoming request contents to a file

    Posted Thu February 04, 2021 04:03 PM

    We get a 400 error on a request with the msg "Malformed request", will like to capture the incoming request and examine.



    #Support
    #SupportMigration
    #WebSphereHTTPServer


  • 2.  RE: How can write an incoming request contents to a file

    Posted Thu February 04, 2021 04:15 PM

    There is an included diagnostic module for this that is easy to activate and produces plaintext output:

    http://publib.boulder.ibm.com/httpserv/manual24/mod/mod_net_trace.html

    If you have difficulty reading the hexdump-like output, the file can be parsed by downloading the IHS mustgather "ihsdiag" and running the "ParseNetTrace" sub-tool. It will create many files in the filesystem for data sent/recvd on different connections.

    http://publib.boulder.ibm.com/httpserv/ihsdiag/install.html

    If you can't find the issue with the 400, the error_log and nettrace could be analyzed quickly in a support case.



    #Support
    #SupportMigration
    #WebSphereHTTPServer