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

Page 79: Context, Usage, Input parameters

Advertising
background image

Brocade Virtual ADX OpenScript API Guide

67

53-1003243-01

Methods

6

Return Values

The following table contains the return values.

Example

OS_HTTP_RESPONSE::header ($name, $value)

Sets the HTTP header value specified in $name.

Context

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

Usage

Used to rewrite the header value.

Input Parameters

The following table contains the input values.

Return Values

None

TABLE 67

Return Values

Name

Type

Description

string

The value of the HTTP header
specified by $name if present
otherwise undefined.

TABLE 68

Input Values

Name

Type

Description

$name

string

A string representing the HTTP
header name.

$value

string

A string representing the HTTP
header value.

use OS_HTTP_RESPONSE;

sub HTTP_RESPONSE{

my $cookie = OS_HTTP_RESPONSE::header("Set-Cookie");

}

Advertising