25.325. XMLHttpRequest.open( ): initialize HTTP request parameters25.325.1. Synopsisvoid open(String method, String url, boolean async, String username, String password) 25.325.1.1. Arguments
25.325.2. DescriptionThis method initializes request parameters for later use by the send( ) method. It sets readyState to 1; deletes any previously specified request headers and previously received response headers; and sets the responseText, responseXML, status, and statusText properties to their default values. It is safe to call this method when readyState is 0 (when the XMLHttpRequest object is just created, or after a call to abort( )) and when readyState is 4 (after a response has been received). The behavior of open( ) is unspecified when it is called from any other state. Other than storing request parameters for use by send( ) and resetting the XMLHttpRequest object for reuse, the open( ) method has no other behavior. In particular, note that implementations do not typically open a network connection to the web server when this method is called. 25.325.3. See AlsoXMLHttpRequest.send( ); Chapter 20 |