Forum Discussion
mattdereus
Nimbostratus
Mar 18, 2022HTTP::uri causes malformed URI
We are using the HTTP::uri command in an iRule to set a prefix on the given URI, and following the prefix example given in the F5 official documentation shown here: https://clouddocs.f5.com/cli/tmsh-...
Mar 20, 2022
Hi mattdereus ,
I would recommend either adding some logging commands to this rule or grabbing one of the rules available that dumps info about the request to fully understand the state of the requests that show that issue.
There is an older post, "HTTP::uri returns full URL" in which they were seeing something similar to you, and one of the commenters mentioned that RFC2616 allows for an absolute URI in certain cases. One of the suggestions is to check to see if the URI begins with a /, and if not, then you could use the URI:: commands to get and modify the path in the URI as you need.
Hope this helps,
Josh