From 4802987178a0a49ea5ff4a01e92a35b5517734dc Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 31 Oct 2019 00:14:20 +0100 Subject: Initial work towards HTTP content-type export --- example/ndpiReader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'example/ndpiReader.c') 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); -- cgit v1.2.3