Contenttype (Xml.contenttype Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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:
,
,
,
Ranges
Age
Allow
,
Content-Range
ETag
,
Authenticate
Proxy-Authorization
,
Trailer
Transfer-Encoding
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A string that represents an HTTP request header name.
header:Object
headerValue:String
Example
The following example adds a custom HTTP header named
to 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
addRequestHeader (LoadVars.addRequestHeader method)

contentType (XML.contentType property)

public contentType :
The MIME content type that is sent to the server when you call the
XML.sendAndLoad()
is the standard MIME content type used for most HTML forms.
Availability: ActionScript 1.0; Flash Lite 2.0
720
ActionScript classes
,
Allowed
Connection
,
,
Host
Last-Modified
,
Public
,
,
Upgrade
- A string that represents the value associated with
:
my_xml
method.
String
method. The default is
,
,
Content-Length
,
,
Locations
Max-Forwards
,
,
Range
Retry-After
,
,
,
URI
Vary
Via
Warning
SOAPAction
that contains two alternating HTTP
headers
application/x-www-form-urlencoded
,
Content-Location
,
Proxy-
,
,
,
Server
TE
, and
WWW-Authenticate
.
header
with a value of
or
XML.send()
Accept-
.
Foo
, which

Advertisement

Table of Contents
loading

Table of Contents