How to replace the User -Agent field of the client browser with the MSIE-10

How to replace the User -Agent field of the client browser with the MSIE-10

book

Article ID: CTX216711

calendar_today

Updated On:

Description

This article describes how to create rewrite policy to rewrite the User-Agent of the Client browser so that the backend server always sees the User-Agent as MS-IE 10.


Instructions

In order to make it work , we need to create a Rewrite Policy and Action.

Command Line :
 
add rewrite action test11234 replace "HTTP.REQ.HEADER(\"User-Agent\")" "\"MSIE:10\""
add rewrite policy test1 HTTP.REQ.IS_VALID test11234


GUI screenshots as below : 

1 Create a policy .

User-added image

2 Create an Action 

User-added image

We can take nstrace capture on Netscaler to confirm that it works:
 
Machine IP 10.104.6.82
VIP : 10.104.43.132
SNIP 10.104.43.135
Backend server : 10.104.43.145

Front end Communication between the Client IP and the VIP with the User -Agent as Mozilla 


User-added image

In the backend communication between the SNIP and the server , Netscaler replaced the User -Agent with the MSIE 

User-added image
 

Issue/Introduction

How to replace the User -Agent field of the client browser with the MSIE-10