mrgilchen
Nov 27, 2019Altostratus
Solved
How to parse xml tag in POST body
Hi,
My POST request to F5 looks like this:
<ScheduleRecordings>
<ShowingID>REC_4344</ShowingID>
<Channel>4344</Channel>
</ScheduleRecordings>
How do I parse the Channel header value.
Gil
regexp {<Channel>(.*)</Channel>} [HTTP::payload] match CHANNEL
Like this you can use $CHANNEL immédiately.
log local0. "$CHANNEL"
Should show you the value.
Do not hesitate to mark this Answered :)