SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot Bruce Lee's Avatar
    Join Date
    Jan 2005
    Location
    Singapore
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    download from diff server

    to download a file from same server we use

    Response.AddHeader "content-disposition", "attachment; filename=text.mp3"

    but what if i want to download a file from diff server.

    How can i do that?

    i have tried using virtual directory which is pointing to diff folder in different server but doesnot work

    First is it possible use to download files from virtual directory pointing to diff server altogether?
    Happy Coding!!!
    Bruce Lee.

  2. #2
    SitePoint Zealot romance's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can't you just use Response.Redirect("http://www.othersite.com/downloadscript.asp") and just call the script from there?

  3. #3
    SitePoint Zealot Bruce Lee's Avatar
    Join Date
    Jan 2005
    Location
    Singapore
    Posts
    198
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thats tricky but for some reaons i cannot have asp running in diff server.
    does softartisian file up component does any magic?
    Happy Coding!!!
    Bruce Lee.

  4. #4
    Guru Bullschmidt's Avatar
    Join Date
    Apr 2002
    Location
    USA
    Posts
    524
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Of course you could put an off-site page within a frame.

    Or a related link:

    How do I read the contents of a remote web page?
    http://www.aspfaq.com/show.asp?id=2173

    Using Microsoft's XMLHTTP Object to Get Data From Other Web Pages by Richard Lowe - 11/1/2000
    http://www.4guysfromrolla.com/webtech/110100-1.shtml
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •