<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>46183</bug_id>
          
          <creation_ts>2010-09-21 06:26:23 -0700</creation_ts>
          <short_desc>XHR rewrites non-POST methods upon 301/302 redirects</short_desc>
          <delta_ts>2023-03-27 05:51:49 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 7</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://www.mnot.net/javascript/xmlhttprequest/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Julian Reschke">julian.reschke</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>mnot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>282255</commentid>
    <comment_count>0</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-21 06:26:23 -0700</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944192</commentid>
    <comment_count>1</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-03-27 05:51:49 -0700</bug_when>
    <thetext>The test is no longer present, but I&apos;m pretty sure this got resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>