Forum Discussion
Access denied error when trying to retrieve saml token from html body
Praque,
Still not 100% clear on what you're trying to accomplish here, but here are some recommendations.
-
The $d2-$d7 and foreach loop seem to be deriving the domain value from the requested Host header, given that the Host is a 7-level name. You can more easily accomplish the same thing with the domain command:
set domain [domain [HTTP::host] 6] -
You're likely only getting part of the payload in the HTTP_RESPONSE because it's exceeding a single TCP packet. You need to issue an HTTP::collect command in the HTTP_RESPONSE event, which will buffer the output and trigger the HTTP_RESPONSE_DATA event:
when HTTP_RESPONSE { If response from web service if { [HTTP::cookie exists "SMSESSION"] } { set smsession "[HTTP::cookie value SMSESSION]" log local0. "smsession$smsession" set gotpath 0 HTTP::collect [HTTP::header Content-Length] } } when HTTP_RESPONSE_DATA { Full payload should be available here in [HTTP::payload] }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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