<?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>22532</bug_id>
          
          <creation_ts>2008-11-27 11:30:35 -0800</creation_ts>
          <short_desc>[Mac] 307 redirect resets method to GET</short_desc>
          <delta_ts>2013-04-12 17:14:25 -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>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://crypto.stanford.edu/~collinj/test/redirection/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Barth">abarth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>collinj</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mrowe</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100542</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2008-11-27 11:30:35 -0800</bug_when>
    <thetext>According to the HTTP RFC at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, an HTTP 307 redirect should keep the current HTTP method.  However, Safari resets the method to GET.  I haven&apos;t debugged this enough to know whether this is a WebKit bug or a CFNetwork bug.

Test case:
  http://crypto.stanford.edu/~collinj/test/redirection/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100589</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-11-28 01:38:27 -0800</bug_when>
    <thetext>See also: bug 11118, bug 11119.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100643</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-11-28 14:16:44 -0800</bug_when>
    <thetext>The redirect request is constructed by the ResourceHandle implementation, so this is likely a bug with the underlying network library.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282278</commentid>
    <comment_count>3</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-21 06:59:18 -0700</bug_when>
    <thetext>Note that this is still the case in Safari 5.0.2, although it may be limited to synchronous XHR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>438687</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-07-18 13:44:51 -0700</bug_when>
    <thetext>This line of code appears to do this work:

http://trac.webkit.org/browser/trunk/Source/WebCore/platform/network/mac/ResourceHandleMac.mm?rev=90834#L695

Perhaps we&apos;re not hitting that line in synchronous requests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875064</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-04-12 17:14:25 -0700</bug_when>
    <thetext>&gt; The redirect request is constructed by the ResourceHandle implementation, so this is likely a bug with the underlying network library.

Yes, that&apos;s how we see it too.

&lt;rdar://problem/10859411&gt;/&lt;rdar://problem/13625208&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>