# APM clientlessmode + HTTP\_RESPONSE\_RELEASE issue

**URL:** <https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176>\
**Category:** Technical Forums\
**Tags:** big-ip-access-policy-manager-apm, deployment, irules, devops, security, application-delivery\
**Created:** [August 29, 2013, 7:39am UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176 "2013-08-29T07:39:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthieu\_Dieri1](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matthieu\_Dieri1](https://community.f5.com/u/Matthieu_Dieri1)\
**Post date:** [August 29, 2013, 7:39am UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/1 "2013-08-29T07:39:50Z")

</div>

Hi team,

Since 11.4, I’m not able to use HTTP\_RESPONSE\_RELEASE nor HTTP\_REQUEST\_RELEASE if clientlessmode is set to 1. Any idea why these events are not parsed when clientlessmode is enabled ?

Thanks Matt

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [August 29, 2013, 11:00am UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/2 "2013-08-29T11:00:48Z")

</div>

I’m definitely seeing those events in 11.4 HF3. Which version?

Can you try this on a test VIP with simple access policy and see what you get:

```tcl
when HTTP_REQUEST {
    log local0. "here"
    HTTP::header insert "clientless-mode" 1
}
when HTTP_RESPONSE {
    log local0. "here"
}
when ACCESS_SESSION_STARTED {
    log local0. "here"
}
when ACCESS_SESSION_CLOSED {
    log local0. "here"
}
when ACCESS_ACL_ALLOWED {
    log local0. "here"
}
when ACCESS_POLICY_COMPLETED {
    log local0. "here"
}
when HTTP_REQUEST_SEND {
    log local0. "here"
}
when HTTP_REQUEST_RELEASE {
    log local0. "here"
}
when HTTP_RESPONSE_RELEASE {
    log local0. "here"
}

```

---

<div class="post-metadata">

**Author:** ![Matt\_Dierick](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/matt_dierick/32/17074_2.png) [@Matt\_Dierick](https://community.f5.com/u/Matt_Dierick)\
**Post date:** [August 29, 2013, 5:11pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/3 "2013-08-29T17:11:11Z")

</div>

Hi Kevin,

Wassup ? Thanks for the irule. Actually, my VE lab is running on 11.4 without any HF. I’m trying to make a test with a simple portal access ressource.

Unfortunatly, when I enable clientless mode, I have a weird behavior on the serverside. APM logs show a POST instead of a GET when clientless mode is enabled. Therefore, webserver does not answer anything.

Clientless mode enabled :

Aug 29 18:53:55 BIGIP114 debug apd[24675]: 01490000:7: HTTPParser.cpp func: “parseHttpRequestHeader()” line: 164 Msg: **HTTP Method received: POST** Aug 29 18:53:55 BIGIP114 debug apd[24675]: 01490000:7: HTTPParser.cpp func: “parseHttpRequestHeader()” line: 193 Msg: HTTP URI received: /

Clientless mode disabled :

Aug 29 18:52:32 BIGIP114 debug apd[24675]: 01490000:7: HTTPParser.cpp func: “parseHttpRequestHeader()” line: 164 Msg: **HTTP Method received: GET** Aug 29 18:52:32 BIGIP114 debug apd[24675]: 01490000:7: HTTPParser.cpp func: “parseHttpRequestHeader()” line: 193 Msg: HTTP URI received: /my.policy

Any idea how to test clientless mode ?

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [August 29, 2013, 5:16pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/4 "2013-08-29T17:16:26Z")

</div>

Can you elaborate on your config? Why are you trying to use clientless-mode with a portal resource?

---

<div class="post-metadata">

**Author:** ![Matt\_Dierick](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/matt_dierick/32/17074_2.png) [@Matt\_Dierick](https://community.f5.com/u/Matt_Dierick)\
**Post date:** [August 29, 2013, 5:48pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/5 "2013-08-29T17:48:48Z")

</div>

Kevin,

I managed to reproduce the behavior seen on customer site. I changed my lab with this configuration :

- VPE : Logon page only (in order to check the clientless mode). No portal ressource anymore.
- VS\_APM : Web pool as a ressource when APM --\> allow.

When Clientless mode enabled :

Aug 29 19:42:18 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 **: here** Aug 29 19:42:18 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 **: here** Aug 29 19:42:18 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:42:18 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here

When clientless mode disabled :

Aug 29 19:42:54 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 : here Aug 29 19:42:54 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 : here Aug 29 19:42:54 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 **: here**

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 **: here** Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 : here

Conclusion, several events are not parsed when clientless mode is enabled.

A case is opened through the partner, I will check with technical support. Thanks for your help on this deal 🙂

See U soon. Matt

---

<div class="post-metadata">

**Author:** ![Matt\_Dierick](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/matt_dierick/32/17074_2.png) [@Matt\_Dierick](https://community.f5.com/u/Matt_Dierick)\
**Post date:** [August 29, 2013, 5:53pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/6 "2013-08-29T17:53:13Z")

</div>

Sorry Kevin, some lines have disappeared :

Clientless mode enabled :

Aug 29 19:42:18 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST: here

Aug 29 19:42:18 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST: here

Aug 29 19:42:18 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST: here

Aug 29 19:42:18 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST: here

Clientless mode disabled :

Aug 29 19:42:54 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST\>: here

Aug 29 19:42:54 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 ACCESS\_SESSION\_STARTED\>: here

Aug 29 19:42:54 BIGIP114 info tmm1[26636]: Rule /Common/TEST\_114 HTTP\_RESPONSE\_RELEASE\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 ACCESS\_POLICY\_COMPLETED\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 ACCESS\_ACL\_ALLOWED\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST\_SEND\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_REQUEST\_RELEASE\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_RESPONSE\>: here

Aug 29 19:43:01 BIGIP114 info tmm[26636]: Rule /Common/TEST\_114 HTTP\_RESPONSE\_RELEASE\>: here

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [August 29, 2013, 6:06pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/7 "2013-08-29T18:06:28Z")

</div>

I’m also going to assume that you do not see the logon page, and that is to be expected with clientless-mode. The primary use case for clientless-mode is to disable the default HTTP redirect mechanism that APM uses to start a policy evaluation. With clientless-mode enabled, the client is NOT redirected to the special policy URI (/my.policy), but rather “falls through” the policy. The session token that is normally sent in the first redirect is now sent in the FIRST RESPONSE from the server. The down side of clientless-mode is that it doesn’t generally allow for “blocking” policy objects like message boxes, logon pages, and webtops. AAA objects and SSO do still work.

---

<div class="post-metadata">

**Author:** ![Matt\_Dierick](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/matt_dierick/32/17074_2.png) [@Matt\_Dierick](https://community.f5.com/u/Matt_Dierick)\
**Post date:** [August 29, 2013, 6:18pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/8 "2013-08-29T18:18:28Z")

</div>

You do right, with clientless mode enabled I bypass the logon page --\> correct. It’s what i’m looking for.

I will investigate with the tech support because this Event flow shows that events should be parsed.

 ![image_86942.png](https://d20hrnpixdzcsd.cloudfront.net/original/2X/2/279c32cb1594b872e2aa8e420994825dcfc490d8.png)

---

<div class="post-metadata">

**Author:** ![Kevin\_Stewart](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/kevin_stewart/32/15267_2.png) [@Kevin\_Stewart](https://community.f5.com/u/Kevin_Stewart)\
**Post date:** [August 29, 2013, 6:50pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/9 "2013-08-29T18:50:14Z")

</div>

Try turning off access event restrictions and look again:

```tcl
when CLIENT_ACCEPTED {
    ACCESS::restrict_irule_events disable
}

```

In any case, while you’ll definitely bypass the logon form, you’ll also kill the webtop and probably any assigned resources. There are ways around this, but it depends on what you’re trying to accomplish.

---

<div class="post-metadata">

**Author:** ![Matt\_Dierick](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/matt_dierick/32/17074_2.png) [@Matt\_Dierick](https://community.f5.com/u/Matt_Dierick)\
**Post date:** [August 29, 2013, 6:57pm UTC](https://community.f5.com/t/apm-clientlessmode-http-response-release-issue/16176/10 "2013-08-29T18:57:46Z")

</div>

Congrats 🙂 Make it works.

Thank you so much Kevin.
