Xml.addrequestheader() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

XML.addRequestHeader()

Availability
Flash Player 6.
Usage
my_xml.addRequestHeader(headerName:String, headerValue:String) : Void
my_xml.addRequestHeader(["headerName_1":String, "headerValue_1":String ...
"headerName_n":String, "headerValue_n":String]) : Void
Parameters
A string that represents an HTTP request header name.
headerName
headerValue
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()
1012
Chapter 2: ActionScript Language Reference
A string that represents the value associated with
,
,
,
Age
Allow
Allowed
,
,
,
ETag
Host
Last-Modified
,
Proxy-Authorization
,
Upgrade
:
my_xml
method.
Content-Type
,
,
Connection
Content-Length
,
,
Locations
Max-Forwards
,
,
Public
Range
,
,
,
,
URI
Vary
Via
Warning
that contains two alternating HTTP
headers
.
headerName
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 FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash mx

Table of Contents