title: how to handle 302 redirect in scrapy
body: <p>I am receiving a 302 response from a server while scrapping a website:</p>
  
  <pre><code>2014-04-01 21:31:51+0200 [ahrefs-h] DEBUG: Redirecting (302) to &lt;GET http://www.domain.com/Site_Abuse/DeadEnd.htm&gt; from &lt;GET http://domain.com/wps/showmodel.asp?Type=15&amp;make=damc&amp;a=664&amp;b=51&amp;c=0&gt;
  </code></pre>
  
  <p>I want to send request to GET urls instead of being redirected. Now I found this middleware:</p>
  
  <p><a href="https://github.com/scrapy/scrapy/blob/master/scrapy/contrib/downloadermiddleware/redirect.py#L31">https://github.com/scrapy/scrapy/blob/master/scrapy/contrib/downloadermiddleware/redirect.py#L31</a></p>
  
  <p>I added this redirect code to my middleware.py file and I added this into settings.py:</p>
  
  <pre><code>DOWNLOADER_MIDDLEWARES = {
   'street.middlewares.RandomUserAgentMiddleware': 400,
   'street.middlewares.RedirectMiddleware': 100,
   'scrapy.contrib.downloadermiddleware.useragent.UserAgentMiddleware': None,
  }
  </code></pre>
  
  <p>But I am still getting redirected. Is that all I have to do in order to get this middleware working? Do I miss something?</p>