-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh http header is not followed #92
Comments
What does the refresh header do? Why does it not work in request? You should just be able to request({headers:{refresh:0.1}}) |
It's a response header, not a request header. See the transcript. On 24 Oct 2011, at 18:55, Mikeal Rogers
|
so, refresh === Connection: close? if that is the case then it'll need to be fixed in core. |
I see it as similar to a 302 redirect. However, this only really makes sense for a Refresh with a time of 0. In the transcript above, should request pause for 0.1s before redirect/refreshing? That would seem a bit crazy. |
i'm having this issue as well. i'm trying to crawl a site that has an interim loading page, the response header has Refresh that is not being followed. i've looked at the code, and i'm considering a work around for this, but would like to know if any attempt to fix this is in the works. here's the debug infoz. DEBUG: 200 http://www.mysite.com/blarg (response 44716) |
@mikeal when you said "needs to be fixed in core" do you mean http? |
any news on this one? handling of meta-refresh as a redirect within request would be fantastic. |
Is this still an issue? This is so old I'm closing, if it is actually still an issue just let me know and I'll re-open. |
I've just stumbled upon this issue myself. Some info on this: https://en.wikipedia.org/w/index.php?title=URL_redirection&oldid=723633886#Refresh_Meta_tag_and_HTTP_refresh_header |
has any progress been made to this? |
Some websites still send the (non-standard) Netscape-era Refresh HTTP header. This header is supported by all browsers (IE, Firefox, Chrome etc)
eg: Webkit's implementation can be found here:
http://trac.webkit.org/browser/trunk/Source/WebCore/platform/network/HTTPParsers.cpp#L106
The websites which send this Refresh HTTP header are not obscure sites which can be ignored. For example, I've received the refresh header from microsoft.com:
The text was updated successfully, but these errors were encountered: