XMLHttpRequest: Difference between revisions

Content deleted Content added
Line 87:
}</syntaxhighlight>
 
Aside from these general steps, XMLHttpRequest has many options to control how the request is sent and how the response is processed. Custom [[HTTP header|header fields]] can be added to the request to indicate how the server should fulfill it, and an object to upload in the request can be provided in the "send" call. The response can be automatically parsed from the [[JSON]] format into a readily usable JavaScript object, or processed gradually as it arrives rather than waiting for the entire text. The request can be aborted prematurely or set to automatically fail automatically if not completed in a specified amount of time.
 
==See also==