Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Force download on http client... (browser ed)

0 views
Skip to first unread message

DJ Bo

unread,
Feb 26, 2003, 4:25:19 AM2/26/03
to
Hi,

I've created a small web server and was wondering if the following is
possible...

I give the client some links he/she can choose from.
Some of the links are 'text' files, others are bitmaps, waves, html pages etc.
I want the client to force a download instead of the client trying to'load' the
document.
Eg. If the link is a html file, I want a browser to actually download and save
the file instead of having the browser show it's contents...

I've got a feeling the ContentType has something to do with this.

TIA,
Rory


DJ Bo

unread,
Mar 6, 2003, 4:59:51 AM3/6/03
to
Dear Michael,

Well, sort of yes....

If you set the Response.ContentType to 'application/unknown' it will definatly
download the file in question.
Another problem is that it will now try to download the file as project1.dll...
I'm still wotking on that though... not sure what to do there...

Cheers,
Rory

"Michael Harings" <mhar...@mchsi.com> wrote in message
news:3e670837$2...@newsgroups.borland.com...

> Hi Rory, I'm looking to do something similar. Have you found out anything?
>
> Thanks!
> Michael
>


0 new messages