Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Rea: http redirection and download

by baku (Scribe)
on Sep 24, 2001 at 22:18 UTC ( #114384=note: print w/replies, xml ) Need Help??


in reply to Re: http redirection and download
in thread http redirection and download

For a `real' header:

print <<HTTP; Content-Type: text/html Refresh: 0;URL=http://www.MySite.DOM/myfile.tar.bz2 <html> <head><title> tnx </title></head> <body><h1> thank you </h1></body> </html> HTTP

To save some CPU cycles, you can make that into an "unparsed" file (on my Apache box, by putting a .http extension on it) with the HTTP headers and the HTML together. The user sees only an HTML page, but there's this magic when they load it from your server that gives them the file.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114384]
help
Chatterbox?
[Corion]: Meh. IE crashes when displaying that SVG as saved from Firefox ...
LanX blame Canada!
[Discipulus]: to crash is not the default behaviour of IE? ;=)
[Discipulus]: so every library (js) to sdelect and modify the id parameters can be good.
[Discipulus]: I never understood something: I can on the fly modify the XML structure of the SVG using for example XML::Twig ?

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-03-23 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.