Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion #12607: django.test.client.Client changes the HTTP method to "GET" when doing a redirect.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Django  
View profile  
 More options Jan 14 2010, 1:17 am
From: "Django" <nore...@djangoproject.com>
Date: Thu, 14 Jan 2010 06:17:51 -0000
Local: Thurs, Jan 14 2010 1:17 am
Subject: Re: [Django] #12607: django.test.client.Client changes the HTTP method to "GET" when doing a redirect.
#12607: django.test.client.Client changes the HTTP method to "GET" when doing a
redirect.
----------------------------------------+---------------------------------- -
          Reporter:  pbiggar            |         Owner:  nobody                      
            Status:  closed             |     Milestone:  1.2                          
         Component:  Testing framework  |       Version:  1.2-alpha                    
        Resolution:  invalid            |      Keywords:  get redirect _handle_redirect
             Stage:  Unreviewed         |     Has_patch:  0                            
        Needs_docs:  0                  |   Needs_tests:  0                            
Needs_better_patch:  0                  |  
----------------------------------------+---------------------------------- -
Comment (by Alex):

 I just read through RFC2616 and you are correct that the spec says that
 you are supposed to redirect using the same request method, however the
 spec specifically notes that most clients transform any redirects into a
 GET, this is the behavior of most web browsers, AFAIK.  I think the
 solution here might be for you to just use follow=False and do the
 redirect tracking manually, as I think the django test client wants to
 stay similar to browsers.

--
Ticket URL: <http://code.djangoproject.com/ticket/12607#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.