|
Posted by Daedalus.OS on 05/29/05 04:27
If you look at the html code of the page you're talking about, you'll notice
the following:
<META HTTP-EQUIV="refresh" content="5;
URL=http://umn.dl.sourceforge.net/sourceforge/vnc-tight/tightvnc-1.2.9_x86_viewer.zip">
This line makes the file to download 5 seconds after the page is loaded.
This is often used for redirection, but since in this case it refresh (or
redirect) to a zip file, then this doesn't replace the page but prompt to
save the file instead.
Dae
<edykstra@virtualcad.com> wrote in message
news:1117327839.547641.216760@o13g2000cwo.googlegroups.com...
> Hello,
>
> If you point your browser to this page,
>
> http://prdownloads.sourceforge.net/vnc-tight/tightvnc-1.2.9_x86_viewer.zip?use_mirror=umn
>
> the server sends you the HTML page, and very soon afterwards, you are
> prompted to do a 'Save-As' for a file to download.
>
> How do they do that without the classic "Headers already sent" error?
>
> In my application, I need to do something very similar.
>
> Thanks in advance for any help!
>
> Eric
>
Navigation:
[Reply to this message]
|