Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Location doesn't work on MAC

by sachmet (Scribe)
on Apr 13, 2001 at 22:23 UTC ( #72419=note: print w/replies, xml ) Need Help??


in reply to Location doesn't work on MAC

Do you have a code sample you could show?

Generally, it should just be:
print qq#Location: $newlocation\n\n#; exit(0);
and that should work. I've never had a problem handing that off to people using Macs...

The other thing you could try is sending back a HTML document with a meta-refresh tag, and a link in case the refresh doesn't occur.

Replies are listed 'Best First'.
Re: Re: Location doesn't work on MAC
by merlyn (Sage) on Apr 13, 2001 at 23:01 UTC
    The other thing you could try is sending back a HTML document with a meta-refresh tag, and a link in case the refresh doesn't occur.
    No. Please don't. It kills the use of my "back" button, because I press back, it goes to the meta-refresh doc, and then refreshes forward again.

    If you can at all generate headers, the headers method is much preferred.

    -- Randal L. Schwartz, Perl hacker

      While I agree with merlyn (i.e. don't use the meta-refresh tag), at least specify that the page is to redirect after 5 seconds. This should give plenty of time to hit the back button twice. I don't remember the specific syntax for this but i believe the tag would look like this:
      <meta http-equiv="Refresh" content="5;http://url-goes-here">

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://72419]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2021-04-20 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?