The following standard HTTP headers cannot be added or changed with this method:
,
,
Ranges
Age
Allow
,
,
Range
ETag
Host
Authorization
,
,
Upgrade
URI
Vary
Example
This example adds a custom HTTP header named
object.
my_lv
my_lv.addRequestHeader("SOAPAction", "'Foo'");
This next example creates an array named
and their associated values. The array is passed as an argument to
var headers = ["Content-Type", "text/plain", "X-ClientAppVersion", "2.0"];
my_lv.addRequestHeader(headers);
See also
XML.addRequestHeader()
LoadVars.contentType
Availability
Flash Player 6.
Usage
my_lv.contentType
Description
Property; the MIME type that is sent to the server when you call
LoadVars.sendAndLoad()
See also
LoadVars.send()
,
,
Allowed
Connection
,
,
Last-Modified
Locations
,
,
,
Public
Range
Retry-After
,
,
, and
Via
Warning
. The default is
,
LoadVars.sendAndLoad()
,
Content-Length
,
Max-Forwards
,
,
,
Server
TE
Trailer
.
WWW-Authenticate
SOAPAction
that contains two alternating HTTP headers
headers
application/x-www-form-urlencoded
,
,
Content-Location
,
Proxy-Authenticate
,
Transfer-Encoding
with a value of
to the
Foo
addRequestHeader()
LoadVars.send()
LoadVars.contentType
Accept-
Content-
,
Proxy-
,
.
or
.
427
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers