Problem with meta tags

27 views
Skip to first unread message

altern

unread,
Apr 30, 2009, 8:37:49 AM4/30/09
to phpQuery
I have problem with meta tag with http-equiv=Refresh attribute. I
parse cnn.com page and it <meta> tag does not have url attribute, so
it does not redirect nowhere. But phpQuery think does not handle
absence of the url attribute and tries to redirect anyway. How could I
manage this issue? Will be some bugfix there?

Tobiasz Cudnik

unread,
Apr 30, 2009, 4:56:02 PM4/30/09
to phpQuery
After requesting cnn.com, ive got this meta
<meta http-equiv="refresh" content="1800;url=?refresh=1">
Like you see, there is "?refresh=1", which is relative url. Expanded
version is
http://cnn.com/?refresh=1

So as i suppose, youre using webbrowser plugin and it redirects over
and over again? The simplest fix for that would be limiting honored
refreshes to certain time, like "honor refresh only is time is less
than 2 seconds".

Have i understood correctly your issue ?

altern

unread,
May 5, 2009, 9:18:02 AM5/5/09
to phpQuery
Yes. Everything is alright now. I've resolved this issue.

One more question. Is there possibility of passing callback parameters
as array('class', 'function') in phpQuery (as it's mentioned in php
manual describing call_user_func)? It's very inconvenient to use just
function name.

On Apr 30, 11:56 pm, Tobiasz Cudnik <tobiasz.cud...@gmail.com> wrote:
> After requesting cnn.com, ive got this meta
> <meta http-equiv="refresh" content="1800;url=?refresh=1">
> Like you see, there is "?refresh=1", which is relative url. Expanded
> version ishttp://cnn.com/?refresh=1

altern

unread,
May 6, 2009, 10:03:51 AM5/6/09
to phpQuery
I'm sorry for the dumb question. I've already found out that this is
possible.
Reply all
Reply to author
Forward
0 new messages