Bug 46183 - XHR rewrites non-POST methods upon 301/302 redirects
Summary: XHR rewrites non-POST methods upon 301/302 redirects
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL: http://www.mnot.net/javascript/xmlhtt...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-21 06:26 PDT by Julian Reschke
Modified: 2023-03-27 05:51 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julian Reschke 2010-09-21 06:26:23 PDT
The test cases at http://www.mnot.net/javascript/xmlhttprequest/ show that XHR,
when following a 301/302 redirect, changes the method to GET.

According to RFC 2616, Sections 10.3.2 and 10.3.3
(http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.10.3), this is a
bug.

That being said, it's understood that rewriting *POST* is required for
compatibility with existing content. However, this does not seem to be the case
for other methods, as IE restricts the conformance violation to POST and
apparently gets away with it.

Please consider tightening the implementation.
Comment 1 Anne van Kesteren 2023-03-27 05:51:49 PDT
The test is no longer present, but I'm pretty sure this got resolved.