Name
XML.contentType Property — MIME content type for XML dat sent via XML.send( ) and XML.sendAndLoad( )
Availability
Flash 5 Build 41 or later
Synopsis
XMLdoc.contentType
Access
Read/write
Description
The contentType property is the MIME type that is
sent to a server when XML.send( ) or
XML.sendAndLoad( ) is invoked. It defaults to
application/x-www-urlform-encoded. The
contentType
property may be
modified for specific XML objects, or
XML.prototype.contentType
may
be modified to affect all XML objects.
The contentType property first appeared in Build
41 of the Flash 5 Player, before which it was not possible to set
MIME type. Check contentType’s validity by
comparing it to undefined or using the
getVersion( ) function to determine the Player
version and build.
Usage
See important notes on setting MIME type under the
XML.send( ) entry.
See Also
XML.send( ), XML.sendAndLoad(
)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access