擅长:python、mysql、java
<p>将<code>follow_redirects=False</code>提供给<a href="http://code.google.com/appengine/docs/python/urlfetch/fetchfunction.html" rel="noreferrer">fetch function</a>,然后从响应中的“location”头检索第一个重定向的位置,如下所示:</p>
<pre><code>response = urlfetch.fetch(your_url, follow_redirects=False)
location = response.headers['Location']
</code></pre>