# HTTP:uri in HTTP\_Request error (not supported)

**URL:** <https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758>\
**Category:** Technical Forums\
**Tags:** irules, application-delivery, ltm\
**Created:** [August 2, 2021, 8:06am UTC](https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758 "2021-08-02T08:06:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ingo](https://avatars.discourse-cdn.com/v4/letter/i/e19adc/32.png) [@Ingo](https://community.f5.com/u/Ingo)\
**Post date:** [August 2, 2021, 8:06am UTC](https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758/1 "2021-08-02T08:06:07Z")

</div>

Hello,

we are using the below simple irule since years. However, with version 14.x.x or so there started an error to show up in the LTM log - also the irule seems to it’s job anyway. I found an F5 document saying HTTP::uri is not allowed within HTTP\_REQUEST.

I have to admit i am not god with this stuff, could someone please help to get that into an other syntax that does not through an error.

rule (simply removes the /80 from the URI):

when HTTP\_REQUEST {

HTTP::uri [string map {/80/\_vti\_bin/Webs.asmx /\_vti\_bin/Webs.asmx} [HTTP::uri]]

}

error:

TCL error: /Common/alfresco\_acrobat\_fix \<HTTP\_REQUEST\> - Can’t call after responding - ERR\_NOT\_SUPPORTED (line 1) invoked from within “HTTP::uri”

Many thanks,

Ingo

---

<div class="post-metadata">

**Author:** ![Mayur\_Sutare](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/mayur_sutare/32/5035_2.png) [@Mayur\_Sutare](https://community.f5.com/u/Mayur_Sutare)\
**Post date:** [August 2, 2021, 8:49am UTC](https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758/2 "2021-08-02T08:49:31Z")

</div>

Hi &nbsp;,

Do you have any other iRules on the same vServer ?

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [August 2, 2021, 8:55am UTC](https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758/3 "2021-08-02T08:55:07Z")

</div>

Hi @Ingo,

there is a change in behavior&nbsp;in 14.1. Please see:

[K23237429: TCL error: ERR\_NOT\_SUPPORTED after upgrade to version 14.1.0 or later](https://support.f5.com/csp/article/K23237429).

Try to add a _if {[HTTP::has\_responded]}_ to your iRule, as described here: [F5 Cloud Docs](https://clouddocs.f5.com/api/irules/HTTP%5C_%5C_has%5C_responded.html)

This should fix your issue.

KR

Daniel

---

<div class="post-metadata">

**Author:** ![Stefan\_Klotz](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/stefan_klotz/32/19800_2.png) [@Stefan\_Klotz](https://community.f5.com/u/Stefan_Klotz)\
**Post date:** [November 29, 2022, 2:17pm UTC](https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758/4 "2022-11-29T14:17:18Z")

</div>

Dear Daniel,

thanks for the change in behavior link. I ran into this issue during our update yesterday evening from 13.1.5 to 15.1.8 as well. There were two different iRules in place, which both have a redirect command including a HTTP::uri condition. Connection was reset in the browser as stated in the article and the error count of the second iRule increased.  
I could solve the issue by consolidating both iRules into one and separate its content with if-statements.  
Now I know the reason 😉

But I don’t find any hint in the release notes of version 14.1.0 for this. Or did I look at the wrong place? Just for future updates to avoid any issues due to behavior changes. I mean it makes no sense to check all relevant release notes, if not all behavior changes are included.

Regards Stefan 🙂

---

<div class="post-metadata">

**Author:** ![Paulius](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/paulius/32/21698_2.png) [@Paulius](https://community.f5.com/u/Paulius)\
**Post date:** [January 11, 2023, 8:03pm UTC](https://community.f5.com/t/http-uri-in-http-request-error-not-supported/43758/5 "2023-01-11T20:03:13Z")

</div>

@Ingo This might work for you.

```tcl
when HTTP_REQUEST {

    if {[HTTP::uri] == "/80/_vti_bin/Webs.asmx"} {
        HTTP::uri [string map {"/80/_vti_bin/Webs.asmx" "/_vti_bin/Webs.asmx"} [HTTP::uri]]
    }

}

```
