Naumin_Dave_144
Dec 22, 2016Nimbostratus
How to hide URI from server response
Hi All,
I am trying to remove URI from return traffic(i.e. from server side response to client side) as the web server(pool member) is coded with redirection. Based on my research we need HTTP+STREAM Profile.
Basically, i want to remove uri part from server response. your suggestions required. Thanks in advance .
Example:
Client request: xyz.symantec.com
Server Response: xyz.symantec.com/cfcc/login.jsp
Trying to achieve: remove URI part from server response(i.e. /cfcc/login.jsp) & send client only host part: xyz.symantec.com
Irule Example:
when HTTP_REQUEST {
STREAM::disable
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {[HTTP::header value Content-Type] contains "text"}{
STREAM::expression {@https:// xyz.symantec.com/cfcc/login.jsp@https:// xyz.symantec.com @}
STREAM::enable
}
}