W3C home > Mailing lists > Public > public-webapi@w3.org > September 2006

XMLHttpRequest state after a send()

From: Alexey Proskuryakov <ap-carbon@rambler.ru>
Date: Tue, 19 Sep 2006 18:01:41 +0400
To: <public-webapi@w3.org>
Message-ID: <C135E105.30657%ap-carbon@rambler.ru>


  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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:55 GMT