Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
TrafficScript to log HTTP Request and Response Headers
Sometimes you really need to see what is happening with HTTP headers as they are passing through your SteelApp Traffic Manager. Luckily, STM let you interact with your traffic in real time to log this info out.
Here is a TrafficScript that you can use to capture REQUEST and RESPONSE headers using the http.getHeaders() TrafficScript call. Simply install the TrafficScript below, attach it to your virtual server as both a REQUEST and RESPONSE rule, and watch the logs on your STM:
log.info("Request received from: ". $client_ip. " with the following headers: ". lang.dump($req_headers));
log.info("Response received from server for request from: ". $client_ip. " with the following headers: ". lang.dump($resp_headers));
When you look at your log files, you will see something like this: