Forum Discussion
Tom_Thunem_9204
Nimbostratus
Jul 13, 2006add flag to http header based on which pool is selected
we have a rule in place that selects a pool based on the source IP. in 4.x has anyone ever added a "flag" to the http header to indicate which pool the traffic was sent to?
3 Replies
- hoolio
Cirrostratus
There is an option to insert a header in the pool configuration in 4.x:
Header To Insert:
- client_addr
- client_port
- server_addr
- server_port
- ip_tos
- link_qos
The format for the variables is: ${variable}. So to insert the client IP address in the header you could use: ${client_addr}.
Unfortunately, none of these options allow you to specify the node address.
Aaron - Eric_Zimmerman_
Nimbostratus
Not sure that I understand. Where in the HTTP Header would this information be inserted? We would like to be able to insert this information somewhere where it can be retrieved, such as in a cookie or response variable, for example:
GET / HTTP/1.1
Host: www.em.avnet.com
Connection: close
Accept-Encoding: gzip
Accept: */*
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; (R1 1.5); .NET CLR 1.1.4322) Web-Sniffer/1.0.24
Referer: http://web-sniffer.net/
Cookie: population_group=crawler
HTTP Status Code: HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 15 Feb 2007 16:57:21 GMT
Connection: close
Set-Cookie: population_group=crawler; path=/; expires=Saturday, 06-Sep-2014 23:50:08 GMT
Cache-control: private
Content-Type: text/html
Any ideas on how to add this information to the cookies in the header? - Eric_Zimmerman_
Nimbostratus
bump...
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
