cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
582
Views
0
Helpful
1
Replies

ACE30, http content rewrite

Christian Vesth
Level 1
Level 1

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 1

kshibu
Level 1
Level 1

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.)
 

Review Cisco Networking for a $25 gift card