Richard_Marsha1
Sep 06, 2006Nimbostratus
http content rewrite
Hi,
I'm looking for some help writing my first iRule.
We are quering a remote domain for an xml feed, but often the returned content begins with garbage - please see example below:
--------------------------------------------------------------------------------------
bless( do{\(my $o = 136523848)}, 'Cache::FastMmap::CImpl' )
5|87238978
$HashPage-->18<--
$HashSlot-->142389272<--
..............
undef
$Flags-->0<--
$Found-->0<--
Cache::FastMmap.pm************************
etc, etc....
--------------------------------------------------------------------------------------
what I need to do is remove everything before the xml opening tags and leave the rest as it is. i only want this iRule to apply when we are talking to a particular domain to save on load - we do similar queries against a number of domains, but only one has the issue.
i have seen the iRule that strips a CC number from the content and understand parts of it, but don't get how I can modify it for my purposes. Can someone point me in the right direction, or offer some suggestions on how i can do this?
Thanks
Rich