PHP Classes

Refresh ( HTTP header )

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Refresh ( HTTP header )  >  (Un) Subscribe thread alerts  
Subject:Refresh ( HTTP header )
Summary:how to ?
Messages:3
Author:vMyth
Date:2007-10-25 05:57:12
Update:2007-10-28 02:27:05
 

  1. Refresh ( HTTP header )   Reply   Report abuse  
Picture of vMyth vMyth - 2007-10-25 05:57:12
vancouver-webpages.com/META/metatag ...

After having posted data to a site, I received a header variable named "refresh" which contain an URL. How do I follow this URL ? Thank you very much.

  2. Re: Refresh ( HTTP header )   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-10-27 18:30:01 - In reply to message 1 from vMyth
You need to parse the refresh URL definition, wait for the specified amount of time and issue a GET request to the specified URL.

The class does not yet do that for you because it is a rarely used form of redirecting pages with response headers. Usually sites use that with page meta tags, but that is more complicated because it requires parsing the page. Maybe in the future the class will support this form of redirection.

  3. Re: Refresh ( HTTP header )   Reply   Report abuse  
Picture of vMyth vMyth - 2007-10-28 02:27:05 - In reply to message 2 from Manuel Lemos
Thank you very much for your answer :). I found this when trying to login to a Simple Machine Forum.