Forum Discussion
nitass_89166
Noctilucent
is this something below like this,
when HTTP_REQUEST { if {[HTTP::header exist "Accept-Encoding"]} { HTTP::header remove "Accept-Encoding" "" } }
you can just remove it (no need to check if header exists before).
another way is to use header-erase setting in http profile.
Akhilesh_128432
Mar 06, 2016Nimbostratus
Thanks for your quick response.
I have updated those entries in my Irule. pasting below. Could you please confirm.
when HTTP_RESPONSE
{ if {[HTTP::header exist "Accept-Encoding"]} { HTTP::header remove "Accept-Encoding" "" } }
when HTTP_RESPONSE {
trigger collection for up to 1MB of data
if {([HTTP::header exists "Content-Length"]) && ([HTTP::header "Content-Length"] <= 1000000)}{
set content_length [HTTP::header "Content-Length"]
} else {
set content_length 1000000
}
HTTP::collect $content_length
}
when HTTP_RESPONSE_DATA {
if {[HTTP::payload] contains "authToken"} {
set authToken [findstr [HTTP::payload] "authToken" 12 "36"]
persist add uie $authToken
}
HTTP::release
}
Also could you please share couple of dev central article to configure erase setting in HTTP Profile.
Thanks,
Akhi