doc: update http.request_line keyword information

Ticket: 3025

Signed-off-by: jason taylor <jtfas90@gmail.com>
pull/10795/head
jason taylor 2 years ago committed by Victor Julien
parent c7f351bd6e
commit 292b3eb9b3

@ -280,11 +280,23 @@ Example HTTP Request::
http.request_line
-----------------
The ``http.request_line`` forces the whole HTTP request line to be inspected.
The ``http.request_line`` keyword is used to match on the entire contents of
the HTTP request line.
Example::
Example HTTP Request::
GET /index.html HTTP/1.1
User-Agent: Mozilla/5.0
Host: suricata.io
.. container:: example-rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"HTTP Request Example"; \
flow:established,to_server; :example-rule-options:`http.request_line; \
content:"GET /index.html HTTP/1.1";` bsize:24; classtype:bad-unknown; \
sid:60; rev:1;)
alert http any any -> any any (http.request_line; content:"GET / HTTP/1.0"; sid:1;)
.. note:: ``http.request_line`` does not include the trailing \\r\\n
.. _http.header:

Loading…
Cancel
Save