beautypg.com

Os_http_response::cookie_comment($name, $value), Input parameters, Return values – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 98: Example, Context, Usage

background image

86

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

6

Input Parameters

The following table contains the input values.

Return Values

The following table contains the output values.

Example

OS_HTTP_RESPONSE::cookie_comment($name, $value)

Sets the cookie comment of the cookie specified by $name to the value specified by $value.

Context

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

Usage

Can be used to set the comment for a cookie.

Input Parameters

The following table contains the input values.

TABLE 100

Input Values

Name

Type

Description

$name

string

A string representing the cookie
name.

TABLE 101

Input Values

Name

Type

Description

string

Comment value for the cookie
specified by $name.

TABLE 102

Input Values

Name

Type

Description

$name

string

A string representing the cookie name.

$value

string

A string representing the cookie comment that you
want to set for the cookie specified by $name.

use OS_HTTP_RESPONSE;

sub HTTP_RESPONSE{

my $cookie_comment = OS_HTTP_RESPONSE::cookie_comment("ServerID");

}