fred whitridge <[EMAIL PROTECTED]> writes:

> I have been successfully using a script which goes out to an http server
> which redirects to an https server.  This script is getting account balance
> information.
> Frequently, the server on the other end is down.  It used to just fail.
> Now, rather than a redirect there seems to be a "refresh":
> <meta http-equiv=refresh content="0;url='/account/unavailable/index.html'">
> is there a way to trap for this so I can halt my program?  When the other
> end is up I go thru:
> while ($response->is_redirect) {
> without a problem.

I guess you could also test for ($response->header("Refresh")).  The
meta element will show up as the "Refresh" header in the response
unless you turn off head parsing in the $ua.


Reply via email to