pwsm / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Fail to redirect for "refresh" meta tag #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Use httplib2 to visit http://wapmail.wo.com.cn/smsmail/

What is the expected output? What do you see instead?
It shoud redirect to another page

What version of the product are you using? On what operating system?
httplib2-0.7.1.zip 

Please provide any additional information below.
This page(http://wapmail.wo.com.cn/smsmail/) has "refresh" meta tag:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<html>
<head>
<title>手机邮箱</title>
<meta http-equiv="refresh" content="0; URL=/smsmail_iphone/index.jsp" />
</head>
<body>
</body>

but httplib fails to redirect.

Original issue reported on code.google.com by xiaoshan...@gmail.com on 3 Aug 2011 at 8:51

GoogleCodeExporter commented 8 years ago
I disagree. The <meta> tag is outside of the context of HTTP (it's in the HTML 
payload, not in the HTTP protocol itself). It should be handled by the 
application using httplib2. It would be reasonable for a browser emulator (like 
mechanize) to follow this refresh directive, but not httplib2, which should 
know nothing about HTML.

Original comment by jaraco%jaraco.com@gtempaccount.com on 3 Aug 2011 at 4:11

GoogleCodeExporter commented 8 years ago

Original comment by joe.gregorio@gmail.com on 28 Aug 2012 at 3:24