diff options
author | Luca <deri@ntop.org> | 2019-10-31 00:14:20 +0100 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-10-31 00:14:20 +0100 |
commit | 4802987178a0a49ea5ff4a01e92a35b5517734dc (patch) | |
tree | 90577a9664c56338c4f71b1ec303bc1d2b39c1d2 /example/ndpiReader.c | |
parent | af01e61c89a66630fdc76e5059c0a348226e6f40 (diff) |
Initial work towards HTTP content-type export
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 364ee6b50..268fea160 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1143,8 +1143,9 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa } if(flow->http.url[0] != '\0') - fprintf(out, "[URL: %s][StatusCode: %u]", - flow->http.url, flow->http.response_status_code); + fprintf(out, "[URL: %s][StatusCode: %u][ContentType: %s][UserAgent: %s]", + flow->http.url, flow->http.response_status_code, + flow->http.content_type, flow->http.user_agent); if(flow->ssh_tls.ssl_version != 0) fprintf(out, "[%s]", ndpi_ssl_version2str(flow->ssh_tls.ssl_version, &known_tls)); if(flow->ssh_tls.client_info[0] != '\0') fprintf(out, "[Client: %s]", flow->ssh_tls.client_info); |