The only header I've found you can't always set via xhr.setRequestHeader() is WWW-Authenticate because the browser thinks it should be responsible for HTTP Authentication. Which is why the last 2 optional arguments to xhr.open() are username and password, to effectively let you set these headers (it does the base64 encoding for you too which is handy).
If anyone manages to remember any specific browser limitations or can find any references please let me know since it would be important for any RESTful design. Patrick On Mon, May 5, 2008 at 9:34 PM, Matt S Trout <[EMAIL PROTECTED]> wrote: > On Mon, May 05, 2008 at 10:46:56AM +0100, luke saunders wrote: > > On Mon, May 5, 2008 at 1:20 AM, Patrick Donelan <[EMAIL PROTECTED]> wrote: > > > > > > > No, but how you provide an alternative to full RESTness for clients > that > > > > don't handle the full range of HTTP verbs -is- a matter for > discussion. > > > > > > > > > > Which clients are we talking about here? I did a quick google search > and > > > could only find an off-hand remark along the lines of "in 2006 safari > had > > > poor support for REST verbs". I'm interested because in my own > personal > > > experience I haven't run into any problems generating > PUT/POST/GET/DELETE > > > with IE/FF/Opera browsers. Or are you talking about the inability to > specify > > > anything other than GET or POST as a form method? > > > > > > > I'm afraid I can't remember exactly, it was around two years ago and > > we needed to fire PUT requests using XHR in JS using Dojo and it just > > wasn't happening. Dojo has changed dramatically since then and now has > > an xhrPut method so I expect whatever the problem has been addressed. > > Doubt it. > > The problem was the browsers gleefully threw out half the headers we were > trying to send when we used a PUT request. Fuck all dojo can do about that > so far as I can see. > > Of course I forget which browsers and which headers, but it sure as hell > fucked our shit up but good. > > -- > Matt S Trout Need help with your Catalyst or DBIx::Class > project? > Technical Director > http://www.shadowcat.co.uk/catalyst/ > Shadowcat Systems Ltd. Want a managed development or deployment > platform? > http://chainsawblues.vox.com/ > http://www.shadowcat.co.uk/servers/ > > _______________________________________________ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ >
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/