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

XMLHTTPRequest Issue on behaviour when method not supported

From: Jim Ley <jim@jibbering.com>
Date: Wed, 24 May 2006 15:41:53 +0100
Message-ID: <003401c67f40$34bd3f10$0302a8c0@Sniff>
To: <public-webapi@w3.org>

The method parameter of the open method says:

A valid HTTP method name. The GET, POST, PUT, DELETE and HEAD values MUST be 

Nowhere is the behaviour defined for what happens if the methods are not 
supported, the current behaviour in those user agents who only support a 
couple of methods - that of silently transformed into GET, is not much use, 
and I would say very wrong.

Please change it to throw an exception on open if you use a method which is 
not defined, or alternatively provide a property which is the actual method 
going to be used, preferably the exception.


Received on Wednesday, 24 May 2006 14:42:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC