
50 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
5
OS_HTTP_REQUEST::collect
Starts collecting an HTTP request payload. This is useful only for HTTP requests with a payload
component (for example: POST requests).
• An “HTTP_REQUEST_DATA” event will be triggered once the collect condition is satisfied.
• A server load balancing action cannot be taken based on the content collected.
• If more data is needed after the “HTTP_REQUEST_DATA” event is triggered, the collect function
should be called again to start a new data collection sequence.
Context
This function called in http response context will have no effect.
Input Parameters
The following table contains the input values.
Return Values
None
Example
TABLE 47 Input Values
Name Type Description
1 Will collect the whole body of data requested
integer Specifies the minimum number of bytes of body data to be collected.
none Collects data from one packet.
use OS_HTTP_REQUEST;
use OS_SLB;"
sub HTTP_REQUEST{
OS_HTTP_REQUEST::collect(1);
}
sub HTTP_REQUEST_DATA () {
my $content = OS_HTTP_REQUEST::content;
OS_SLB::send_to_server;
}
Comentarios a estos manuales