diff --git a/iwla.py b/iwla.py index 4378a02..7bb08bc 100755 --- a/iwla.py +++ b/iwla.py @@ -104,6 +104,9 @@ visits : requests => [fields_from_format_log] extract_request => + http_method + http_uri + http_version extract_uri extract_parameters* extract_referer* => @@ -669,6 +672,9 @@ class IWLA(object): if not self._decodeHTTPRequest(hit): return False + if hit['extract_request']['http_method'] not in ['GET', 'POST']: + return False + for k in hit.keys(): if hit[k] == '-' or hit[k] == '*': hit[k] = ''