For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

mrgilchen's avatar
mrgilchen
Icon for Altostratus rankAltostratus
Nov 27, 2019
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 :)

     

     

11 Replies