Skip to content

Commit

Permalink
doc: http.uri.raw has no spaces
Browse files Browse the repository at this point in the history
as they are in the protocol

cf bug OISF#2881
  • Loading branch information
catenacyber authored and victorjulien committed Dec 1, 2020
1 parent f3c59ef commit 6b30890
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/userguide/rules/http-keywords.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ characters %20 in a uri. This means matching on the uri.raw. The
uri.raw and the normalized uri are separate buffers. So, the uri.raw
inspects the uri.raw buffer and can not inspect the normalized buffer.

.. note:: uri.raw never has any spaces in it.
With this request line ``GET /uid=0(root) gid=0(root) HTTP/1.1``,
the ``http.uri.raw`` will match ``/uid=0(root)``
and ``http.protocol`` will match ``gid=0(root) HTTP/1.1``
Reference: `https://redmine.openinfosecfoundation.org/issues/2881 <https://redmine.openinfosecfoundation.org/issues/2881>`_

Example of the URI in a HTTP request:

.. image:: http-keywords/uri1.png
Expand Down

0 comments on commit 6b30890

Please sign in to comment.