Forum Discussion
Pradeep_Kandala
Nimbostratus
Nov 02, 2012Facing issue in HTTP::collect, HTTP::payload
Hi Guys,
I have a nice working IRULEs code, but for my additional operations, I'm trying to fetch the complete body from post method using the below code.. but it hangs when I add the code.
I'm not finding the proper literature which gives clear idea to use HTTP::collect and HTTP::payload
in HTTP_REQUEST
if {[HTTP::method] equals "POST"} {
if {[HTTP::header Content-Length] > 1 && [HTTP::header Content-Length] < 7000} {
set content_length [HTTP::header Content-Length]
Use default collect length
[HTTP::collect [HTTP::header Content-Length]]
log local0.info "10.0023- Printing the SAML response: $SAMLResponse IP: [IP::client_addr]"
}
}
when HTTP_REQUEST_DATA {
do stuff with the payload
set SAMLResponse [HTTP::payload]
log local0.info "60.0000- Printing the SAML response: $SAMLResponse IP: [IP::client_addr]"
HTTP::release
}
Thanks a lot in advance,
Pradeep
3 Replies
- nitass
Employee
[HTTP::collect [HTTP::header Content-Length]]i do not think you need outer bracket. - What_Lies_Bene1
Cirrostratus
Brackets.HTTP::collect [HTTP::header Content-Length]
- Pradeep_Kandala
Nimbostratus
That was not the issue, its not working if length is above 200, the data ai send is more than 5500. not able to get the resolution
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects