Closed GoogleCodeExporter closed 9 years ago
谢谢,但GAE的运行环境不能使用httplib/urlib,只能用GAE提供的urlfe
tch API,而这个API函数不
回传302等,甚至也不回传重定向后的Location.
Original comment by dug...@188.com
on 2 Jul 2008 at 4:29
http://code.google.com/appengine/docs/urlfetch/responseobjects.html
这里介绍的有函数可以抓到返回的status code 和 header,
status_code
The HTTP status code.
headers
The HTTP response headers, as a mapping of names to values.
Original comment by fla.sam
on 2 Jul 2008 at 4:00
你往前翻一页就看到了:)
http://code.google.com/appengine/docs/urlfetch/overview.html
特别是这句话: fetch() follows HTTP redirects up to 5 times, and returns
the final
resource.
Original comment by dug...@188.com
on 3 Jul 2008 at 9:44
status_code不包含302等重定向响应,overview里面已经说明白了
Original comment by dug...@188.com
on 3 Jul 2008 at 9:46
http://groups.google.com/group/gappproxy/browse_thread/thread/2dffd6b1f23cf786
Original comment by lovelywcm
on 14 Jan 2009 at 6:08
Original issue reported on code.google.com by
fla.sam
on 1 Jul 2008 at 3:51