MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 120

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 155
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 119
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
117
You cannot add or change the following standard HTTP headers by using this method: Accept-Ranges, Age, Allow,
Allowed, Connection, Content-Length, Content-Location, Content-Range, ETag, Host, Last-Modified, Locations,
Max-Forwards, Proxy-Authenticate, Proxy-Authorization, Public, Range, Retry-After, Server, TE, Trailer, Transfer-
Encoding, Upgrade, URI, Vary, Via, Warning, and WWW-Authenticate.
Note: A call to
XML.addRequestHeader() that sets a value for the Content-Type header overrides any value set in the
XML.contentType property.
Availability
Flash Media Server 2
Parameters
headerName A string representing an HTTP request header name.
headerValue A string representing the value associated with headerName.
Example
The following example adds a custom HTTP header named
SOAPAction with a value of Foo to an XML object
named
my_xml:
my_xml.addRequestHeader("SOAPAction", "'Foo'");
The following example creates an array named headers that contains two alternating HTTP headers and their
associated values. The array is passed as a parameter to the
addRequestHeader() method.
var headers = new Array("Content-Type", "text/plain", "X-ClientAppVersion", "2.0");
my_xml.addRequestHeader(headers);
XML.appendChild()
my_xml.appendChild(childNode)
Appends the specified node to the XML objects child list. This method operates directly on the node referenced by
the
childNode parameter; it does not append a copy of the node. If the node to be appended already exists in another
tree structure, appending the node to the new location removes it from its current location. If the
childNode
parameter refers to a node that already exists in another XML tree structure, the appended child node is placed in
the new tree structure after it is removed from its existing parent node.
Availability
Flash Media Server 2
Parameters
childNode An XMLNode object that represents the node to be moved from its current location to the child list of
the
my_xml object.
Returns
A boolean value;
true if successful; otherwise, false.
Example
The following example performs these actions:
1 Creates two empty XML documents, doc1 and doc2.
2 Creates a new node, by using the createElement() method, and appends it, by using the appendChild()
method, to the XML document named
doc1.
Vedere la pagina 119
1 2 ... 115 116 117 118 119 120 121 122 123 124 125 ... 154 155

Commenti su questo manuale

Nessun commento