beautypg.com

Os_http_response::cookie_count, Return values, Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 99: Context, Usage, Input parameters

background image

Brocade Virtual ADX OpenScript API Guide

87

53-1003243-01

Methods

6

Return Values

None.

Example

OS_HTTP_RESPONSE::cookie_count

Returns the number of cookies present in the HTTP response.

Context

This function called in http request context will have no effect.

Usage

Can be used to return the number of cookies present.

Input Parameters

None.

Return Values

The following table contains the return values.

Example

TABLE 103

Return Values

Name

Type

Description

integer

The number of cookies present
in the response.

use OS_HTTP_RESPONSE;

sub HTTP_RESPONSE{

OS_HTTP_RESPONSE::cookie_comment("ServerID", "cookie comment");

}

use OS_HTTP_RESPONSE;

sub HTTP_RESPONSE{

my $cookie_cnt = OS_HTTP_RESPONSE::cookie_count;

}