From: Philippe Antoine Date: Wed, 25 Nov 2020 14:20:02 +0000 (+0100) Subject: doc: http.uri.raw has no spaces X-Git-Tag: suricata-6.0.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5624%2Fhead;p=thirdparty%2Fsuricata.git doc: http.uri.raw has no spaces as they are in the protocol cf bug #2881 --- diff --git a/doc/userguide/rules/http-keywords.rst b/doc/userguide/rules/http-keywords.rst index 1f8fbdbb80..c97fb0a5d2 100644 --- a/doc/userguide/rules/http-keywords.rst +++ b/doc/userguide/rules/http-keywords.rst @@ -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 `_ + Example of the URI in a HTTP request: .. image:: http-keywords/uri1.png