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. And see here for current known issues.

New Member

Header rewrite on ACE

I have a situation that I need the ACE to re-write a portion of the client header. I can configure the class-map to identify the traffic, but am unsure how to configure the policy map. The client header contains an sid value and we want the header to delete that value before forwarding to the server. From a packet capture, the http request contains the following:

Get /testpage?sid=123456789 HTTP/1.1\r\n

Host: http://www.example.com\r\n

Need to change to:

Get /testpage HTTP/1.1\r\n

Host: http://www.example.com\r\n

Note that the /testpage portion of the Get will vary by page.

I also notice the sid value in the Referer header value and may need to change that as well.

Referer: http://www.example.com/otherpage?sid=123456789

TIA for your help.

1 REPLY
Cisco Employee

Re: Header rewrite on ACE

all we can do with the url is to create a redirect pointing to a different one.

So you could catch with a class-map any url with sid= and create a redirect to a page without the sid.

In a future release, you'll also be able to filter host header but currently this is not possible.

Gilles.

298
Views
0
Helpful
1
Replies