Brocade Virtual ADX OpenScript API Guide (Supporting ADX v User Manual Page 1

Browse online or download User Manual for Computer Accessories Brocade Virtual ADX OpenScript API Guide (Supporting ADX v. Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 132
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Brocade Virtual ADX

53-1003243-01July 2014®Brocade Virtual ADXOpenScript API GuideSupporting Brocade Virtual ADX version 03.1.00

Page 2 - Document History

x Brocade Virtual ADX OpenScript API Guide53-1003243-01Command syntax conventionsNotes, cautions, and warningsThe following notices and statements may

Page 3 - Contents

88 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6OS_HTTP_RESPONSE::headers_as_stringReturns a string representation of all HTTP respons

Page 4 - Chapter 4 UDP API reference

Brocade Virtual ADX OpenScript API Guide 8953-1003243-01Chapter7Server Load Balancing API ReferenceIn this chapterThis chapter contains the following

Page 5

90 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7Input ParametersThe following table contains the input values.Return ValuesThe followi

Page 6

Brocade Virtual ADX OpenScript API Guide 9153-1003243-01Methods7Return ValuesThe following table contains the return values.ExampleOS_SLB:: servers($g

Page 7

92 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7ExampleOS_SLB::is_server_up("server-name"=>$name, "server-id"=&

Page 8

Brocade Virtual ADX OpenScript API Guide 9353-1003243-01Methods7ExampleOS_SLB:: get_server_current_connections($name)Returns the number of current con

Page 9 - Document conventions

94 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7OS_SLB:: get_server_port_current_connections($name, $port)Returns the current connec

Page 10 - Notes, cautions, and warnings

Brocade Virtual ADX OpenScript API Guide 9553-1003243-01Methods7UsageCan be used to perform SSL specific operations.Input ParametersNone.Return Values

Page 11 - Brocade resources

96 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7Return ValuesThe following table contains the return values.ExampleOS_SLB:: persist($m

Page 12 - Document feedback

Brocade Virtual ADX OpenScript API Guide 9753-1003243-01Methods7Return ValuesNoneExampleOS_SLB:: passive_persist($method, $string)Causes the system to

Page 13 - About OpenScript

Brocade Virtual ADX OpenScript API Guide xi53-1003243-01Brocade resourcesTo get up-to-the-minute information, go to http://my.brocade.com to register

Page 14

98 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7OS_SLB:: persist_lookup($method, $string)Returns the server name stored in the persist

Page 15 - Default action

Brocade Virtual ADX OpenScript API Guide 9953-1003243-01Methods7ExampleOS_SLB:: reply($data)Causes the system send an error response to a client inste

Page 16 - Reducing memory usage

100 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7Input ParametersThe following table contains the input values.Return ValuesNoneExampl

Page 17 - IP API reference

Brocade Virtual ADX OpenScript API Guide 10153-1003243-01Methods7ExampleOS _SLB:: log($log_string)DescriptionCauses the system to send the log string

Page 18 - OS_IP::dst

102 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7OS _SLB:: dropDescriptionCauses the system to drop a UDP packet.ContextThis function

Page 19 - OS_IP::protocol

Brocade Virtual ADX OpenScript API Guide 10353-1003243-01Methods7Input ParametersThe following table contains the input values.NOTEIf no input is incl

Page 20 - OS_IP::flags

104 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7Return ValuesNone.ExampleOS _SLB:: send_to_serverDescriptionCauses the system send th

Page 21 - OS_IP::tos

Brocade Virtual ADX OpenScript API Guide 10553-1003243-01Methods7ExampleOS _SLB:: is_group_up($group-id)DescriptionReturns the state of the certain gr

Page 22 - OS_IP::options

106 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods7ExampleNOTEThis API returns the status of the real server ports, which belong to grou

Page 23 - OS_IP::getHeaderLength

Brocade Virtual ADX OpenScript API Guide 10753-1003243-01Chapter8Connection API ReferenceIn this chapterThis chapter contains the following sections:•

Page 24 - OS_IP::getPayloadLength

xii Brocade Virtual ADX OpenScript API Guide53-1003243-01Document feedback• Brocade Supplemental Support augments your existing OEM support contract,

Page 25 - OS_IP::getOptionsLength

108 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods8Return ValuesThe following table contains the return values.ExampleTABLE 129 Return V

Page 26 - OS_IP::raw

Brocade Virtual ADX OpenScript API Guide 10953-1003243-01Chapter9Content Inspection API ReferenceIn this chapterThis chapter contains the following se

Page 27

110 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods9• Content Inspection API operations are transactional:- The matching and replacing of

Page 28

Brocade Virtual ADX OpenScript API Guide 11153-1003243-01Methods9Return valuesNoneExampleOS_PAYLOAD_INSPECT::match(regexp1, [regexp2 …])Specifies the

Page 29 - TCP API reference

112 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods9Input parametersThe following table contains the input values.Return valuesNoneExampl

Page 30 - OS_TCP::dst

Brocade Virtual ADX OpenScript API Guide 11353-1003243-01Methods9OS_PAYLOAD_INSPECT::matched_replace(mstr1, rstr1, [mstr2, rstr2, …])Replaces match st

Page 31 - OS_TCP::flags

114 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods9Return valuesNoneExamplesIn the following example, when the response content type is

Page 32 - OS_TCP::seq

Brocade Virtual ADX OpenScript API Guide 11553-1003243-01Methods9In the following example, when response content type is text, the script replaces all

Page 33 - OS_TCP::ack

116 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods9ExampleIn the following example, the script changes the maximum match size during pay

Page 34 - OS_TCP::options

Brocade Virtual ADX OpenScript API Guide 11753-1003243-01Methods9OS_PAYLOAD_INSPECT::matched_str ()Returns the substring that was matched in scanning

Page 35 - OS_TCP::getHeaderLength

Brocade Virtual ADX OpenScript API Guide 153-1003243-01Chapter1About OpenScriptOverviewBrocade Virtual ADX Perl Extensions allow scripts to access loa

Page 36 - OS_TCP::getPayloadLength

118 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods9In the following example, the script searches for the ‘correct’ and ‘login’ strings i

Page 37 - OS_TCP::getOptionsLength

Brocade Virtual ADX OpenScript API Guide 11953-1003243-01Methods9ExampleIn the following example, the script scans the payload to read the member info

Page 38 - OS_TCP::collect

120 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods9

Page 39 - OS_TCP::payload

2 Brocade Virtual ADX OpenScript API Guide53-1003243-01Overview1Table 1 provides a list of application and protocol events provided for OpenScript. TA

Page 40 - OS_TCP::payload ($data)

Brocade Virtual ADX OpenScript API Guide 353-1003243-01Overview1Error handlingAll OpenScript API methods return an empty list in the list context, an

Page 41 - Performance Impact

4 Brocade Virtual ADX OpenScript API Guide53-1003243-01Reducing memory usage1Reducing memory usageOpenScript will automatically free up memory when th

Page 42

Brocade Virtual ADX OpenScript API Guide 553-1003243-01Chapter2IP API referenceIn this chapterThis chapter contains the following sections:•Overview.

Page 43

6 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods2Return ValuesThe following table contains the return values.ExampleOS_IP::dstDescriptio

Page 44 - OS_UDP::dst

Brocade Virtual ADX OpenScript API Guide 753-1003243-01Methods2ExampleOS_IP::protocolDescriptionReturns the protocol type of the current packet.Contex

Page 45 - OS_UDP::getPayloadLength

Copyright © 2014 Brocade Communications Systems, Inc. All Rights Reserved.ADX, AnyIO, Brocade, Brocade Assurance, the B-wing symbol, DCX, Fabric OS, I

Page 46 - OS_UDP::payload

8 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods2ExampleOS_IP::flagsDescriptionReturns the flags set in the current packet.ContextCalled

Page 47 - OS_UDP::payload ($data)

Brocade Virtual ADX OpenScript API Guide 953-1003243-01Methods2ExampleOS_IP::tosDescriptionReturns the type of service flag set in the current packet.

Page 48 - OS_UDP::raw

10 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods2ExampleOS_IP::optionsDescriptionReturns options in the current packet if present other

Page 49 - HTTP REQUEST API reference

Brocade Virtual ADX OpenScript API Guide 1153-1003243-01Methods2ExampleOS_IP::getHeaderLengthDescriptionReturns the IP header length in bytes. Header

Page 50

12 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods2ExampleOS_IP::getPayloadLengthDescriptionReturns payload length of current packet in b

Page 51 - OS_HTTP_REQUEST::url

Brocade Virtual ADX OpenScript API Guide 1353-1003243-01Methods2ExampleOS_IP::getOptionsLengthDescriptionReturns the length of options in bytes if pre

Page 52 - OS_HTTP_REQUEST::url($val)

14 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods2ExampleOS_IP::rawDescriptionReturns the data within an IP packet including the IP head

Page 53 - OS_HTTP_REQUEST::path($val)

Brocade Virtual ADX OpenScript API Guide 1553-1003243-01Methods2Exampleuse OS_IP;use OS_HTTP_REQUEST;sub HTTP_REQUEST{$raw_data = OS_IP::raw;if(define

Page 54 - OS_HTTP_REQUEST::query

16 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods2

Page 55 - OS_HTTP_REQUEST::query($val)

Brocade Virtual ADX OpenScript API Guide 1753-1003243-01Chapter3TCP API referenceIn this chapterThis chapter contains the following sections:•Overview

Page 56 - OS_HTTP_REQUEST::version

Brocade Virtual ADX OpenScript API Guide iii53-1003243-01ContentsPrefaceDocument conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 57 - TABLE 39 Input Values

18 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3Return ValuesThe following table contains the return values.ExampleOS_TCP::dstDescript

Page 58 - TABLE 41 Return Values

Brocade Virtual ADX OpenScript API Guide 1953-1003243-01Methods3ExampleOS_TCP::flagsDescriptionReturns the TCP flag set in packet.ContextCalled in con

Page 59 - TABLE 42 Input Values

20 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3OS_TCP::winDescriptionReturns the window size (in bytes) of the current TCP packet. Re

Page 60

Brocade Virtual ADX OpenScript API Guide 2153-1003243-01Methods3ContextCalled in context of TCP and HTTP. UsageCan be used to perform load-balancing b

Page 61 - OS_HTTP_REQUEST::host($value)

22 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3Return ValuesThe following table contains the return values.ExampleOS_TCP::optionsDesc

Page 62 - OS_HTTP_REQUEST::collect

Brocade Virtual ADX OpenScript API Guide 2353-1003243-01Methods3ExampleOS_TCP::getHeaderLengthDescriptionReturns TCP header length in bytes. Header le

Page 63 - OS_HTTP_REQUEST::content

24 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3ExampleOS_TCP::getPayloadLengthDescriptionReturns payload length of current packet. Pa

Page 64 - TABLE 49 Input Values

Brocade Virtual ADX OpenScript API Guide 2553-1003243-01Methods3ExampleOS_TCP::getOptionsLengthDescriptionReturns length of options if present, otherw

Page 65 - TABLE 50 Input Values

26 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3ExampleOS_TCP::collectDescriptionReturns the TCP data within a TCP packet.ContextCalle

Page 66 - TABLE 52 Input Values

Brocade Virtual ADX OpenScript API Guide 2753-1003243-01Methods3ExampleOS_TCP::payloadDescriptionReturns a packet's TCP payload. Before calling t

Page 67 - OS_HTTP_REQUEST::content_type

iv Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 68 - TABLE 55 Input Values

28 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3ConstraintA “TCP_SERVER_DATA/ TCP_CLIENT_DATA” buffered payload will be forwarded to t

Page 69 - TABLE 57 Input Values

Brocade Virtual ADX OpenScript API Guide 2953-1003243-01Methods3Performance ImpactThis function will have a significant impact on system performance.E

Page 70

30 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods3

Page 71

Brocade Virtual ADX OpenScript API Guide 3153-1003243-01Chapter4UDP API referenceIn this chapterThis chapter contains the following sections:•Overview

Page 72 - TABLE 60 Input Values

32 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods4Return ValuesThe following table contains the return values.ExampleOS_UDP::dstReturns

Page 73

Brocade Virtual ADX OpenScript API Guide 3353-1003243-01Methods4ExampleOS_UDP::getLengthReturns UDP header and payload length in bytes. ContextCalled

Page 74

34 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods4ContextCalled in UDP context only. UsageCan be used to perform load-balancing based on

Page 75 - HTTP RESPONSE API reference

Brocade Virtual ADX OpenScript API Guide 3553-1003243-01Methods4Return ValuesThe following table contains the return values.ExampleOS_UDP::payload ($d

Page 76 - OS_HTTP_RESPONSE::code ($val)

36 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods4ExampleOS_UDP::rawDescriptionReturns the data within a UDP packet including the UDP he

Page 77 - OS_HTTP_RESPONSE::version

Brocade Virtual ADX OpenScript API Guide 3753-1003243-01Chapter5HTTP REQUEST API referenceIn this chapterThis chapter contains the following sections:

Page 78 - TABLE 66 Input Values

Brocade Virtual ADX OpenScript API Guide v53-1003243-01Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 79 - TABLE 68 Input Values

38 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5UsageCan be used to perform load-balancing based on the method.Input ParametersNone.Re

Page 80

Brocade Virtual ADX OpenScript API Guide 3953-1003243-01Methods5Input ParametersThe following table contains the input values.Return ValuesNoneExample

Page 81 - OS_HTTP_RESPONSE::content

40 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5ExampleOS_HTTP_REQUEST::url($val)Sets the value of the URL to the value specified in $

Page 82 - TABLE 73 Input Values

Brocade Virtual ADX OpenScript API Guide 4153-1003243-01Methods5OS_HTTP_REQUEST::pathReturns URL path specified in HTTP request header if it exists, o

Page 83 - TABLE 74 Input Values

42 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5Input ParametersThe following table contains the input values.Return ValuesNoneExample

Page 84 - TABLE 75 Input Values

Brocade Virtual ADX OpenScript API Guide 4353-1003243-01Methods5ExampleOS_HTTP_REQUEST::query($val)Sets the value of the URL query to the value specif

Page 85 - TABLE 76 Input Values

44 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5OS_HTTP_REQUEST::url_extensionReturns URL extension specified in the HTTP request head

Page 86 - TABLE 78 Return Values

Brocade Virtual ADX OpenScript API Guide 4553-1003243-01Methods5UsageCan be used to perform load-balancing based on the version.Input ParametersNone.R

Page 87 - TABLE 80 Return Values

46 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5Return ValuesNoneExampleOS_HTTP_REQUEST::header($name)Return the HTTP header value of

Page 88 - TABLE 81 Input Values

Brocade Virtual ADX OpenScript API Guide 4753-1003243-01Methods5ExampleOS_HTTP_REQUEST::header($name, $value)Set the HTTP header value to the value sp

Page 89 - TABLE 84 Input Values

vi Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 90 - TABLE 86 Input Values

48 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5OS_HTTP_REQUEST::headers($name)Gets all the HTTP headers with the same name as an arra

Page 91 - TABLE 88 Input Values

Brocade Virtual ADX OpenScript API Guide 4953-1003243-01Methods5Return ValuesThe following table contains the return values.ExampleOS_HTTP_REQUEST::ho

Page 92 - TABLE 90 Input Values

50 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5OS_HTTP_REQUEST::collectStarts collecting an HTTP request payload. This is useful only

Page 93 - TABLE 92 Input Values

Brocade Virtual ADX OpenScript API Guide 5153-1003243-01Methods5OS_HTTP_REQUEST::contentReturns the request content specified in the HTTP request if i

Page 94 - TABLE 93 Input Values

52 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5OS_HTTP_REQUEST::content($value)Sets the request content to the value specified in $va

Page 95 - TABLE 96 Input Values

Brocade Virtual ADX OpenScript API Guide 5353-1003243-01Methods5UsageCan be used to insert a header.Input ParametersThe following table contains the i

Page 96 - TABLE 98 Input Values

54 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5Input ParametersThe following table contains the input values.Return ValuesNoneExample

Page 97 - TABLE 99 Input Values

Brocade Virtual ADX OpenScript API Guide 5553-1003243-01Methods5ExampleOS_HTTP_REQUEST::content_typeReturns request content type if the content-type h

Page 98 - TABLE 102 Input Values

56 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5UsageCan be used to perform load-balancing based on the content length.Input Parameter

Page 99 - TABLE 103 Return Values

Brocade Virtual ADX OpenScript API Guide 5753-1003243-01Methods5Return ValuesThe following table contains the return values.ExampleOS_HTTP_REQUEST::co

Page 100 - Return Values

Brocade Virtual ADX OpenScript API Guide vii53-1003243-01Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 101 - Overview

58 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5OS_HTTP_REQUEST::cookie_countReturns the number of cookies present in the HTTP request

Page 102 - TABLE 106 Return Values

Brocade Virtual ADX OpenScript API Guide 5953-1003243-01Methods5Input ParametersThe following table contains the input values.Return ValuesNoneExample

Page 103 - OS_SLB:: servers($group_id)

60 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5Input ParametersThe following table contains the input values.Return ValuesNoneExample

Page 104 - "port"=>$port)

Brocade Virtual ADX OpenScript API Guide 6153-1003243-01Methods5Exampleuse OS_HTTP_REQUEST;sub HTTP_REQUEST{my $all_headers = OS_HTTP_REQUEST::headers

Page 105 - TABLE 114 Return Values

62 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods5

Page 106 - OS_SLB:: is_client_ssl

Brocade Virtual ADX OpenScript API Guide 6353-1003243-01Chapter6HTTP RESPONSE API referenceIn this chapterThis chapter contains the following sections

Page 107 - OS_SLB:: is_server_ssl

64 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6UsageCan be used to retrieve the response code.Input ParametersNone.Return ValuesThe f

Page 108

Brocade Virtual ADX OpenScript API Guide 6553-1003243-01Methods6ExampleOS_HTTP_RESPONSE::version Returns the response version specified in the HTTP re

Page 109 - TABLE 120 Input Values

66 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6UsageCan be used to set the version.Input ParametersThe following table contains the i

Page 110

Brocade Virtual ADX OpenScript API Guide 6753-1003243-01Methods6Return ValuesThe following table contains the return values.ExampleOS_HTTP_RESPONSE::h

Page 111 - OS_SLB:: reply($data)

viii Brocade Virtual ADX OpenScript API Guide53-1003243-01

Page 112 - OS _SLB:: reset_client

68 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6ExampleOS_HTTP_RESPONSE::headers($name)Gets the HTTP headers with the same name as a a

Page 113 - OS _SLB:: log($log_string)

Brocade Virtual ADX OpenScript API Guide 6953-1003243-01Methods6ContextThis function can be called from an HTTP_RESPONSE_DATA event.UsageThis function

Page 114 - OS _SLB:: forward($server)

70 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6UsageA server load balancing action cannot be taken based on the content collected. In

Page 115 - OS _SLB:: send_to_client

Brocade Virtual ADX OpenScript API Guide 7153-1003243-01Methods6Return ValuesNonePerformance impactUsing this function will have a significant impact

Page 116 - OS _SLB:: send_to_server

72 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6ExampleOS_HTTP_RESPONSE::remove_header ($name) Removes the HTTP header specified in $n

Page 117 - TABLE 126 Return Values

Brocade Virtual ADX OpenScript API Guide 7353-1003243-01Methods6NOTEThis API will remove all headers with a value specified by the $name variable (cas

Page 118 - TABLE 127 Return Values

74 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6Return ValuesThe following table contains the return values.ExampleOS_HTTP_RESPONSE::c

Page 119 - Connection API Reference

Brocade Virtual ADX OpenScript API Guide 7553-1003243-01Methods6ExampleOS_HTTP_RESPONSE::cookie ($name)Returns the cookie value for the cookies specif

Page 120

76 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6ContextThis function called in http request context will have no effect.UsageCan be us

Page 121

Brocade Virtual ADX OpenScript API Guide 7753-1003243-01Methods6Input ParametersThe following table contains the input values.Return ValuesThe followi

Page 122 - Input parameters

Brocade Virtual ADX OpenScript API Guide ix53-1003243-01PrefaceDocument conventionsThis section describes text formatting conventions and important no

Page 123 - Return values

78 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6ExampleOS_HTTP_RESPONSE::cookie_path ($name) Gets the cookie path specified by $name

Page 124

Brocade Virtual ADX OpenScript API Guide 7953-1003243-01Methods6ContextThis function called in http request context will have no effect.UsageCan be us

Page 125

80 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6Return ValuesThe following table contains the output values. ExampleOS_HTTP_RESPONSE::

Page 126 - Examples

Brocade Virtual ADX OpenScript API Guide 8153-1003243-01Methods6ExampleOS_HTTP_RESPONSE::cookie_port ($name) Gets the cookie ports for the cookie sp

Page 127

82 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6OS_HTTP_RESPONSE::cookie_port ($name, $value) Sets the ports of the cookie specified

Page 128 - 53-1003243-01

Brocade Virtual ADX OpenScript API Guide 8353-1003243-01Methods6Input ParametersThe following table contains the input values.Return ValuesThe followi

Page 129

84 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6Return ValuesNone.ExampleOS_HTTP_RESPONSE::cookie_expiration($name) Gets the expirat

Page 130

Brocade Virtual ADX OpenScript API Guide 8553-1003243-01Methods6OS_HTTP_RESPONSE::cookie_expiration($name, $value) Sets the expiration date and time

Page 131

86 Brocade Virtual ADX OpenScript API Guide53-1003243-01Methods6Input ParametersThe following table contains the input values.Return ValuesThe followi

Page 132

Brocade Virtual ADX OpenScript API Guide 8753-1003243-01Methods6Return ValuesNone.Example OS_HTTP_RESPONSE::cookie_countReturns the number of cookies

Comments to this Manuals

No comments