Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: http redirection and download

by hatter (Pilgrim)
on Sep 24, 2001 at 16:07 UTC ( [id://114292]=note: print w/replies, xml ) Need Help??


in reply to http redirection and download

A simple way (which iirc is what tucows do) is to send them straight to a thank you page, but include a javascript open in it, that opens the file they're trying to download, so they get the prompt to open/save the file, and are then still left on the thanks page.

Ah, seeing chadys post, using a meta refresh tag is a much better idea that javascript, though the result is the same. Also, you can actually print a real HTTP refresh/location header, instead of the meta tags (which will hide how you're doing it, to the casual user)

the hatter

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-25 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found