Os_http_request::content, Context, Input parameters – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual
Page 63: Return values, Performance impact, Example

Brocade Virtual ADX OpenScript API Guide
51
53-1003243-01
Methods
5
OS_HTTP_REQUEST::content
Returns the request content specified in the HTTP request if it exists otherwise it will return
undefined.
A server load balancing action cannot be taken based on the content collected.
The size of content returned can be:
1. Larger than specified in the collect call if more data is available when the content is called.
2. Smaller than specified in the collect call if the actual complete body is smaller.
The previous content will be returned every time the content is called unless the script has explicitly
changed content or sent data out.
Context
If called in the HTTP response context, undefined will be returned.
Input Parameters
None.
Return Values
The following table contains the return values.
Performance impact
Use of this function will have a significant impact to system performance.
Example
TABLE 48
Return Values
Name
Type
Description
string
The value of the request content
if present otherwise undefined.
use OS_HTTP_REQUEST;
use OS_SLB;
sub HTTP_REQUEST {
OS_HTTP_REQUEST::collect();
}
Sub HTTP_REQUEST_DATA {
my $content = OS_HTTP_REQUEST::content;
OS_SLB::send_to_server;
}