F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

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