Forum Discussion
iRule HTTP Response Data
Hello Devcentral community,
I'm trying to inspect the HTTP RESPONSE DATA of the webserver in order to check if the response page contains certain parameter.
From the current output of the http payload i can see the following format :
" ¤+h¨Â�Â�Ù2ÂKbñ'“’µÂ�ŽÕÃ+[ɔ+ù ˜™_%+MçœJåÅ\䆸8›*–¹¡ÿƒÛOá "
Maybe i'm missing something ?
set test [HTTP::payload] binary scan $test H* hex set ascii [binary format H* $hex]
log local0. "Payload Response Data: $ascii" log local0. "HTTP_RESPONSE_DATA - PRINT PAYLOAD : $test Payload Len: [HTTP::payload length]; Payload: $ascii "
2 Replies
- Michael_Jenkins
Cirrostratus
Check your incoming request (
) for theHTTP_REQUEST
. In your iRule, remove the header from the request and then look at the response again and see if it's more legible. That header tells the server the types of content encoding/compression that it supports, so you may be seeing compressed data instead of raw data.accept-encoding - MDPF52_180608
Nimbostratus
Yes, right. These are the headers in the request:
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Encodinggzip, deflate Accept-Languageit-IT,it;q=0.8,en-US;q=0.5,en;q=0.3 Connectionkeep-alive Cookie_sn=zkPWARpwOA4a27gZUI06ejq7E0N7o0PgQEJolXFZl8mAZMStKe.fn5oPDH2Rcq3YWNkgF3SOcMmJeCAAAjBcp3LJd1E5hmQ-gicnMUhCmC-I50HKgGk9ELZug-5AxrUN5N5FAM-Fe3vgnG4Xa2zbkZM59yW3QZM- Host xxxx.xxx.com Refererxxxxxxxxxxxxx User-AgentMozilla/5.0 (xxxxxx)
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
