Forum Discussion
elvisc_26948
Nimbostratus
Feb 24, 2010STREAM expression not working
The replacement doesnt seem to work...I am basically doing URI replacment using STREAM function.
Snippet of my code:
http_request {
STREAM::expression "@abc@abc?zz...
hoolio
Cirrostratus
Mar 02, 2010Is the URI you want to rewrite found in the HTTP response headers or the response payload?
Can you use a browser plugin like HttpFox for Firefox or Fiddler for IE to check this?
To rewrite a URI in the response headers, you can use HTTP::is_redirect and HTTP::header. To rewrite the response payload, you can use a stream profile and STREAM::expression iRule.
Here is an example iRule that was designed for rewriting the host in URLs. You could adapt it to handle the URI also (add code to HTTP_REQUEST to rewrite the URI).
HTTP Respond Data replacing?
http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=3457134602
Aaron
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
