Forum Discussion
Sashi_81625
Nimbostratus
Aug 25, 2010cant read HTTP::payload
for the below iRule, the HTTP::payload is unreadable, can someone please point what might be going wrong?
LTM version: 10.0.1
when CLIENT_ACCEPTED {
set lookup 1
}
when HTTP_REQUEST {
if {$lookup == 1} {
set LB_request [HTTP::request]
HTTP::uri "/static/test.html"
}
}
when HTTP_RESPONSE {
if {$lookup == 1} {
if {[HTTP::header exists Content-Length] && ([HTTP::header Content-Length] < 2048)}{
set clength [HTTP::header Content-Length]
} else {
set clength 2048
}
HTTP::collect $clength
}
}
when HTTP_RESPONSE_DATA {
if {$lookup == 1} {
set lookup 0
set payload [HTTP::payload]
log local0. "Payload: $payload"
HTTP::release
HTTP::retry $LB_request
}
}
here is the output of ltm log
±ã²ÃHMLRÃ
ÃEÂ% %©¶J%©%úYÂeÂQ%;®ÂüäÃÃü½äüüìÃT[%'ÃÂÃllswitch : Payload: ÀÀÀÀÀÀ³Ã(ÃÃ
¢ÃÃ
äJ%.ÂR IúKRÂK@°-ÀÃuû*mÀÀÀ
- Colin_Walker_12Historic F5 AccountIs the payload encoded or encrypted somehow? What is it you're trying to accomplish?
- Sashi_81625
Nimbostratus
trying to implement - Colin_Walker_12Historic F5 AccountThere is no reason that I can think of that the LTM would be spitting out payload info like that if it's not somehow being munged from the back-end. Have you taken a trace of the data on the wire? I'd get a tcpdump directly from the BIG-IP as the traffic is coming in. The iRule seems to think that's the payload data it's being passed, so something is definitely wonky.
- Sashi_81625
Nimbostratus
seems like a similar issue has been reported for tcp::payload too - Colin_Walker_12Historic F5 AccountI'd say opening a case is a good idea. It certainly isn't something you're doing with your iRule, that's pretty straight-forward. What does your Virtual config look like? Are you encrypting or compressing the traffic perhaps?
- Sashi_81625
Nimbostratus
Yes, the response that F5 gets is gzip-compressed... i updated the iRule with below lines, and that resolved the issue
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