Forum Discussion
Wes_98712
Nimbostratus
Oct 20, 2006Persist dynamic URI Query
I have a webservices application, we are not generating JSessionID's, so I can't create a dynamic persistence table based on JSession information without requesting a feature addition to the code base. So, what I want to do, is append the URI the client see's as follows:
Requested URL from the client:
http://vip.foo.com:8280/services-deploy/service/SecurityService?
Server response URL to the client:
http://vip.foo.com:8280/services-deploy/service/SecurityService?wsdl&svr=svr1
I would then associate svr1 with a specific IP address. That part doesn't concern me in terms of actually doing building the svr mapping. But there are 2 concerns:
1. I want to append the URL without redirecting, wondering if basic regex would be the solution, in perl it would be something like:
($str = $str) =~s/\wsdl/wsdl&svr=svr1//;
Or something to that affect.
2. I want to be able to check the URI for that string, I think a simple findstr would work.
3. If the string is not there, then based on the servers response, append it to the URI.
I'm going to monkey around and see what I can come up with, but thought it best to reach out here and see what some suggestions/examples are. Thanks.
-wn
3 Replies
Sort By
- Wes_98712
Nimbostratus
I guess I should clarify, if the svr= string does not exist in the clients request, I want to rewrite the URL based on the servers response, so if server 1 responds it the uri query would be appended with &svr=svr1, which would correspond to a specific IP and persist to that IP, so I guess this is a combination of url rewriting and node selection and persistence. - bl0ndie_127134Historic F5 AccountWhy not just use cookie persistence?
- Wes_98712
Nimbostratus
Because even with insert cookie persistance when a node goes offline, the client still persists to it, until they clear the cookie from their browser. We have a timeout set for 30 minutes.
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