breizho35_11667
Feb 08, 2010Nimbostratus
How to read source IP and write http header ?
Hello,
since commencing in iRules, I seek your help to write a script to meet this need:
How to read source IP and write http header ?
when HTTP_Request (
- Read source IP address (eg 192.168.100.101) and translate this source IP in a digit code number of 10 characters without point (eg 2168100101)
- Include a http header corresponding to this digit code (eg TOTO: 1234567890).
HTTP::header insert "TOTO" "digit code"
}
Please, can you help me to write this script?
Thanks you for your help,
Eric