doc: remove legacy description/duplicated data

Ticket: 3025

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

@ -85,23 +85,9 @@ Request or Response Keywords:
* :ref:`http.protocol` * :ref:`http.protocol`
* :ref:`http.header_names` * :ref:`http.header_names`
* :ref:`http.header` * :ref:`http.header`
* :ref:`http.header.raw`
* :ref:`http.cookie` * :ref:`http.cookie`
Although cookies are sent in an HTTP header, you can not match on them
with the ``http.header`` keyword. Cookies are matched with their own
keyword, namely ``http.cookie``.
Each part of the table belongs to a so-called *buffer*. The HTTP
method belongs to the method buffer, HTTP headers to the header buffer
etc. A buffer is a specific portion of the request or response that
Suricata extracts in memory for inspection.
All previous described keywords can be used in combination with a
buffer in a signature. The keywords ``distance`` and ``within`` are
relative modifiers, so they may only be used within the same
buffer. You can not relate content matches against different buffers
with relative modifiers.
.. _http.method: .. _http.method:
http.method http.method
@ -300,10 +286,8 @@ Example HTTP Request::
.. _http.header: .. _http.header:
.. _http.header.raw: http.header
-----------
http.header and http.header.raw
-------------------------------
With the ``http.header`` sticky buffer, it is possible to match With the ``http.header`` sticky buffer, it is possible to match
specifically and only on the HTTP header buffer. This contains all of specifically and only on the HTTP header buffer. This contains all of
@ -322,11 +306,14 @@ modifiers, like ``depth``, ``distance``, ``offset``, ``nocase`` and
See RFC 2616 4.2 Message Headers. See RFC 2616 4.2 Message Headers.
To avoid that, use the ``http.header.raw`` keyword. To avoid that, use the ``http.header.raw`` keyword.
Example of a header in a HTTP request:
Example of the purpose of ``http.header``: .. _http.header.raw:
http.header.raw
---------------
.. _http.cookie: .. _http.cookie:

Loading…
Cancel
Save