Forum Discussion

East_Coast_1151's avatar
East_Coast_1151
Icon for Nimbostratus rankNimbostratus
Oct 10, 2013

HTTP::header and HTTP::cookie do not show all headers in response

I am trying to get a list of cookies from an HTTP response using "HTTP::cookie names" and getting incomplete results. The response contains 3 cookies but the command above returns only the first one. The same thing happens with 'HTTP::header values "Set-Cookie"' and 'HTTP::header names'.

The iRule and the HTTP response are attached below.

Is this a bug? (BigIP VE 11.4)

when HTTP_RESPONSE { 

  set cookies [HTTP::cookie names]
    foreach item $cookies {
    log local0. $item
  }
}

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
request-id: 5b2f7f90-7740-447a-bbc4-51193fae75af
X-TargetBEServer: c-exch01.lab.com
X-Frame-Options: SAMEORIGIN
X-OWA-Version: 15.0.516.30
X-OWA-DiagnosticsInfo: 31.3074;5,75730013847351;9,99999976158142
X-OWA-CorrelationId: owauser1@lab.com_2013-10-09T19:46:30.524_0.02019819100694137
X-OWA-ClientBegin: 2013-10-09T19:46:30.524
X-FrontEnd-Begin: 2013-10-09T19:47:14.734
X-BackEnd-Begin: 2013-10-09T19:47:14.734
X-FrontEnd-Handler-Begin: 2013-10-09T19:47:14.734
X-BackEnd-End: 2013-10-09T19:47:14.766
X-DiagInfo: C-EXCH01
X-UA-Compatible: IE=EmulateIE7
X-AspNet-Version: 4.0.30319
Set-Cookie: X-BackEndCookie=S-1-5-21-1517235108-510097514-1851928258-80843=u56Lnp2ejJqBnsabnp7IypvSzJrLntLLxp2c0p7Im5vSzJnIm5zLncnGz8zMgYHOz9DG0M3Pzszfzs7FysjFzsvfr7I=; expires=Wed, 09-Oct-2013 23:57:14 GMT; path=/owa; secure; HttpOnly
X-FrontEnd-End: 2013-10-09T19:47:14.766
X-Powered-By: ASP.NET
X-FEServer: C-EXCH01
Date: Wed, 09 Oct 2013 23:47:13 GMT
Content-Length: 4592
Set-Cookie: TS0115fe7f=019e53d22b9428567e5525396fb14cec60e0a3a960f91f6b7e1f7c7f389098416bfb8712f61cfd1c23cc32b5f6f391463f454d246fffdf257a25ea310f3786bf5aa354c6fb; Path=/
Set-Cookie: TS01caa4b2=019e53d22b46dece9f949badca5e1508b9f7d1c1ef413b2e37f32461b3cf13a2fd2a805ad11c3ea84783

1 Reply

  • Is ASM involved with this traffic? I ask because the TSXXXXXXXX names of the cookies.

     

    If it is, I wonder if the iRule is firing -before- the ASM has had the opportunity to insert the cookies into the flow, or if the Cookie/Header commands are hardwired to ignore ASM related elements.