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

52
Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
5
OS_HTTP_REQUEST::content($value)
Sets the request content to the value specified in $value.
Context
This function called in http response context will have no effect.
Input Parameters
The following table contains the input values.
Return Values
None
Performance impact
Using this function will have a significant impact on system performance.
Example
OS_HTTP_REQUEST::push_header($name, $value)
Inserts the HTTP header value specified by $name and $value. It will insert this value even if the
existing header has the same value as specified by $name.
Context
This function called in http response context will have no effect.
TABLE 49
Input Values
Name
Type
Description
$value
string
A string representing the value
of the request content.
use OS_SLB;
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
OS_HTTP_REQUEST::collect();
}
sub HTTP_REQUEST_DATA {
my $content = OS_HTTP_REQUEST::content;
$content =~ s/it is playing/it is working/g;
OS_HTTP_REQUEST::content($content);
OS_SLB::send_to_server;
}