Forum Discussion
Frank_30530
Altocumulus
Feb 09, 2018HTTP::path -normalized (TMOS 13) issue?
According to the Wiki, HTTP::path -normalized should do:
the normalization involves lower-casing, removing unnecessary directory traversals, convert from microsoft style %uxxxx form to the stan...
Simon_Blakely
Employee
Feb 12, 2018As an addendum to the response from Jie
The canonical word on the operations of normalize are
1) The case of scheme is normalized to lower-case.
2) The hostname is normalized to lower-case. A possible trailing '.' is removed from the hostname.
3) IP addresses are normalized. There are many ways to write an IP address (v4 and v6). These are cannonicalized to a normal form.
4) Ports are normalized. Unnecessary port annotations (like :80 on a http request) are removed.
5) Paths are normalized, with extra unneeded directory traversals removed.
6) Percent-encoding normalization. Bytes not allowed in a uri are normalized to their percent-encoded representation. Bytes percent-encoded when they don't need to be are changed to their normal representation. We convert from microsoft style %uxxxx form to the standard %xx hex form.
7) Fragment specifiers are removed.
So - HTTP::uri/HTTP::path -normalize should not change the case of a URI.
The documentation for HTTP::uri is probably clearer.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects