Forum Discussion
Terje_Gravvold
Jun 16, 2006Nimbostratus
Hi,
I think your mistake may be that you replace the whole URI with a constant (/version04.webservices.info/). Everything in the URI will be replaced by this. Try to insert a log sentence and explore what happens.
You can solve this with a regsub command or the like. I don't garante the syntax but I hope you get the idea :-).
Example
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/portal/"} {
log local0. "Original HTTP uri = [HTTP::uri]"
set [HTTP::uri] [regsub -all ^/portal [HTTP::uri] "/version02.webservices.portal"]
log local0. "New HTTP uri = [HTTP::uri]"
use pool SDS_Pool01
}
}