Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

ACE30, http content rewrite

Hello all

I'm trying out this new feature from A5(3.0)

 

action-list type modify http ACTION-REWRITE-BODY
  content rewrite response content-string "ABC" replace "DEF"

 

It looks like it only find the first match, replaces and forward response.

Does anyone know if it is possible to replace multiple matches in one response, not only the fist match ?

 

Thanks in advance.

 

Regards,

 

Christian Vesth

 

 

1 REPLY
New Member

http://www.cisco.com/c/en/us

http://www.cisco.com/c/en/us/td/docs/interfaces_modules/services_modules/ace/vA5_3_x/release/note/ACE_mod_rn_A53x.html

 

Configuration and Restrictions

The content-rewrite happens for the response data based on the amount of data that HTTP module received from TCP. By default, HTTP receives upto 32K bytes (including headers) of response data (Default TCP buffer share is 32K ). Hence the content-rewrite works fine up to first 32K response data, if the response data is more than 32K then ACE will send out the remaining data without doing any content-rewrite.

If you want to send more data from TCP to HTTP then you can increase the tcp buffer-share size to upto 48K, then ACE will do the content-rewrite for the first 48K response data and bypasses the remaining response data without content-rewrite.

Example:

parameter-map type connection conn-tcp
set tcp buffer-share 49152
 
Note We have observed ACE is taking more time to do content-rewrite for large response files, (For one GET request of 48K byte data with content-rewrite is taking approximately 6 seconds.)
 
40
Views
0
Helpful
1
Replies