Merge remote-tracking branch 'vlad/topic/vladg/http-verbs'

* vlad/topic/vladg/http-verbs:
  A test for HTTP methods, including some horribly illegal requests.
  Remove hardcoded HTTP verbs from the analyzer (#741)

I added a "bad_HTTP_request" weird for HTTP request lines that don't
have more than a single word.

Closes #741.
This commit is contained in:
Robin Sommer 2012-12-05 15:20:29 -08:00
commit 177c014cb7
6 changed files with 137 additions and 23 deletions

View file

@ -0,0 +1,9 @@
# This tests that the HTTP analyzer handles strange HTTP methods properly.
#
# @TEST-EXEC: bro -r $TRACES/http-methods.trace %INPUT
# @TEST-EXEC: btest-diff weird.log
# @TEST-EXEC: btest-diff http.log
# The base analysis scripts are loaded by default.
#@load base/protocols/http