Hi Tyler,
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment;
filename=" & filename)
The value of filename is what is displayed at the top (Title bar area) of
the IE Download dialog. I usually remove the absolute path from the filename
variable to stop users downloading it directly or other sites linking to my
downloads and using my site's bandwidth.
If you are trying to link to a download uri from another site then you won't
be able to do so directly. The site will be hiding the true download url to
prevent ppl like yourself from doing so. Link to the Download Page (where
the download button is) instead. Often those download pages are crafted to
test your browser and OS version and to stream out the appropriate version
of the software for your OS version. Often the Terms and Conditions of Use
of a site will state that you may NOT link directly to the sites download
links or resource uri's. Their server logs will detect that the download
requests are coming from your site.
In the near future when Cloud storage becomes common place, there will be no
download paths, just somewhere in the 'Cloud' and it will be impossible to
reuse a download link as it will continually change each time a file is
downloaded.
If you have any further technical questions could you please post them in
either
<canned>
Developer-specific resources include:
MSDN IE Development Forums <=post such questions here instead
http://social.msdn.microsoft.com/for...iedevelopment/
IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx
Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx
HTML and DHTML Overviews and Tutorials
http://msdn.microsoft.com/en-us/library/ms537623.aspx and
Cascading Style Sheets (CSS)
http://msdn2.microsoft.com/en-us/ie/aa740476.aspx
</cannned>
This Public Newsgroup is more for your average, non-technical IE user.
Regards.
"Tyler Durden" <> wrote in message
news:...
> hi, this is not what I want. Sometimes we want the full path (url) inside
> the web server wich stores the file we are downloading, like:
>
> http://g.live.com/1rewlive3/pt/wlsetup-all.exe
>
> wich is the full address provided by the button on:
>
> http://download.live.com/?sku=messenger
>
> On this example the url is visible on page source code, but many times it
> isn't, asp pages, etc. How to get it?
>
>
> "rob^_^" <> wrote in message
> news:9357DAFE-9608-4527-832A-...
>> Hi Tyler,
>>
>> From IE, right-click on the download link/button and either choose 'Copy
>> Shortcut' or 'Save Target As'.
>>
>> If this is for your own website, then you are not using MapserverPath
>> properly.
>>
>> Regards.
>>
>> "Tyler Durden" <> wrote in message
>> news:...
>>> Is possible to retrieve the full remote web address of a download
>>> managed by internet explorer? I mean, when you download from a website
>>> and the only visible address is the domain wich hosts the file?
>>>
>>> Thanks.
>>>
>>>
>>>
>
>
>