diff options
author | Luca Deri <deri@ntop.org> | 2019-10-01 12:25:39 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-10-01 12:25:39 +0200 |
commit | e45237a93f771f3d4aeb6c2360469f09c0282b58 (patch) | |
tree | 59b012693a1a66cbb493b0830f8ba61169aaf9bc /example/ndpiReader.c | |
parent | a62cf102331653119b83e87d2efdef6d11cefcd1 (diff) |
Removed http:// from HTTP url
Reported URL in ndpiReader
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 1a54b59d4..c22a6d496 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1138,6 +1138,10 @@ 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); + if(flow->ssh_tls.ssl_version != 0) fprintf(out, "[%s]", ndpi_ssl_version2str(flow->ssh_tls.ssl_version)); if(flow->ssh_tls.client_info[0] != '\0') fprintf(out, "[Client: %s]", flow->ssh_tls.client_info); if(flow->ssh_tls.client_hassh[0] != '\0') fprintf(out, "[HASSH-C: %s]", flow->ssh_tls.client_hassh); |