Some mobile gateways are passing custom headers to my site. These headers are passed in various formats, sometimes, x-msisdn, sometimes x-up-calling-line-id and others. How can I log all headers passed in my custom log format?
Some mobile gateways are passing custom headers to my site. These headers are passed
Share
Via Apache HTTPD I’m not sure how to log all headers – only how to log one header that you know about.
Using the standard Apache httpd module mod_log_config you can specify the following option in the CustomLog directive.
%{Foobar}i The contents of Foobar: header line(s) in the request sent to the server. Changes made by other modules (e.g. mod_headers) affect this.
However you could do this in jsp (if this is what you’re using by chance)