Summary: | XMLHttpRequest Object Should Allow DELETE, HEAD, TRACE, PUT, OPTIONS Methods | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Troy Melhase <troy> |
Component: | khtml ecma | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | kde, phlogistonjohn, roman.yepishev |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Troy Melhase
2006-02-15 23:03:28 UTC
I am working on a REST based script and was bitten by this. My application wants to create new resources via PUT and remove them via DELETE. The W3C specification [1] for XMLHttpRequest objects states that these methods are required. It looks like canSetRequestHeader still lists these as blacklisted. I am running konqueror version 4.1.00. For now I will test in Firefox, but I prefer to use konqueror on my own desktop. [1] http://www.w3.org/TR/XMLHttpRequest/#dependencies This bug breaks Ubuntu One web UI file removals completely. The only supported methods are GET and POST and everything else is converted to GET request: kdelibs-728671/khtml/ecma/xmlhttprequest.cpp: void XMLHttpRequest::send(const QString& _body, int& ec) { ... if (method == "post") { ... job = KIO::http_post( url, buf, KIO::HideProgressInfo ); ... } else { job = KIO::get( url, KIO::NoReload, KIO::HideProgressInfo ); } ... } See https://bugs.launchpad.net/khtml/+bug/493813 Most implementations of XMLHttpRequest does support at least GET,POST,PUT and DELETE. The rest are low priority as they are not consistently implemented. SVN commit 1195838 by orlovich: A couple of fixes/improvements for XHR: - Support custom request types (#122069) - Support the weirdo x-user-defined "encoding" which basically acts as a binary mode. With both of these fixes, we can boot up the WebODF demo and view some of the simpler documents. Doesn't work entirely though (one issue is a CSSOM one, but not sure if anything else is wrong) BUG: 122069 M +72 -22 xmlhttprequest.cpp M +5 -1 xmlhttprequest.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1195838 |