XMLHttpRequest state after a send()

  I have tried searching the archives, but couldn't find this already
discussed.

  The specification defines states 1 and 2 as:
1 Open. The open() method has been successfully called.
2 Sent. The UA successfully completed the request, but no data has yet been
received.

  For async requests, send() MUST return immediately, i.e. even before
resolving the hostname. However, it is also specified that the state MUST be
set to Sent, which apparently violates its definition.

  In my tests, WinIE 6, Firefox 1.5 and Safari 2 all do not change
readyState in an async send(). This effectively means that state Open is
followed by an additional pseudo-state with the same numerical value (e.g.,
Safari currently ignores subsequent send() requests).

- WBR, Alexey Proskuryakov

Received on Tuesday, 19 September 2006 14:02:08 UTC