RTSP::payload¶
Description¶
Queries for or replaces content information. With this command, you
can retrieve content, query for content size, or replace a certain
amount of content.
Syntax¶
RTSP::payload [<size>]
RTSP::payload length
RTSP::payload replace <offset> <length> <string>
RTSP::payload [<size>]¶
- Returns the content that the RTSP::collect command has collected thus far. If you do not specify a size, the system returns the collected content.
RTSP::payload length¶
- Returns the size of the content that the command has collected thus far, not including headers.
RTSP::payload replace <offset> <length> <string>¶
- Replaces the amount of content that you specified with the argument, starting at with .
Examples¶
rule xxx {
when RTSP_REQUEST {
RTSP::collect
}
when RTSP_REQUEST_DATA {
if {[RTSP::payload length] > 10 } {
RTSP::release
}
}
}