Reply to Re: How do I send HTML and a file for 'Save-As' at the same time?

Your name:

Reply:


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
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация