MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 448

Actionscript language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; adds or changes HTTP request headers (such as
with
actions. In the first usage, you pass two strings to the method:
POST
. In the second usage, you pass an array of strings, alternating header names and
headerValue
header values.
If multiple calls are made to set the same header name, each successive value replaces the value set
in the previous call.
You cannot add or change the following standard HTTP headers using this method:
Accept-Ranges
Content-Range
Proxy-Authenticate
,
Trailer
Transfer-Encoding
Example
The following example adds a custom HTTP header named
an XML object named
my_xml.addRequestHeader("SOAPAction", "'Foo'");
The following example creates an array named
headers and their associated values. The array is passed as a parameter to the
addRequestHeader()
var headers:Array = new Array("Content-Type", "text/plain",
"X-ClientAppVersion", "2.0");
my_xml.addRequestHeader(headers);
See also
LoadVars.addRequestHeader()
XML.appendChild()
Availability
Flash Player 5.
Usage
my_xml.appendChild(childNode:XMLNode) : Void
Parameters
An XMLNode that represents the node to be moved from its current location to the
childNode
child list of the
my_xml
Returns
Nothing.
448
Chapter 6: ActionScript Core Classes
,
,
,
Age
Allow
Allowed
,
,
,
ETag
Host
Last-Modified
,
Proxy-Authorization
,
Upgrade
:
my_xml
method.
object.
Content-Type
,
,
Connection
Content-Length
,
,
Locations
Max-Forwards
,
,
Public
Range
,
,
,
,
URI
Vary
Via
Warning
that contains two alternating HTTP
headers
or
SOAPAction
headerName
,
Content-Location
,
,
,
Retry-After
Server
, and
WWW-Authenticate
with a value of
SOAPAction
) sent
and
,
,
,
TE
.
to
Foo

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents