Redirection & File Download

Sometimes the requested page / resource moved to another location, then you have to route such a request to the new URL. This is the redirection.

Sometimes you need to use web application to implement password protected file downloading. This is useful for internal or commercial web application system.

WebRainbow provides the dedicated functions for the redirection and file downloading:

These two functions make redirection and file downloading easy.

The following demo, SendFile, will show the usage of these two functions for redirection and file downloading. It includes two small web applications, UrlRedirect shows how to use Redirect for redirection and FileSend shows how to use SendFile for file downloading, as well as 2 small web applications, Frame and FramePage, to glue them all together and hide all HTML file to make them more secured.

Click on following links to see the source code.

  1. frame.html
  2. logo.html
  3. menu.html
  4. main.html
  5. Frame.bas (source code of "Frame" for Visual Basic 5 & 6, and Visual Basic 4 - 32bit)
  6. FramePage.bas (source code of "FramePage" for Visual Basic 5 & 6)
  7. FramePage4.bas (source code of "FramePage" for Visual Basic 4 - 32bit)
  8. UrlRedirect.bas (source code of "UrlRedirect" for Visual Basic 5 & 6)
  9. UrlRedirect4.bas (source code of "UrlRedirect" for Visual Basic 4 - 32bit)
  10. FileSend.bas (source code of "FileSend" for Visual Basic 5 & 6)
  11. FileSend4.bas (source code of "FileSend" for Visual Basic 4 - 32bit)

To try this demo, follow the steps list bellow:

  1. Compile Frame.bas to Frame.exe.

  2. Compile FramePage.bas or FramePage4.bas to FramePage.exe.

  3. Compile UrlRedirect.bas or UrlRedirect4.bas to UrlRedirect.exe.

  4. Compile FileSend.bas or FileSend4.bas to FileSend.exe.

    Note: All these files are normally in the folder C:\Program Files\WebRainbow\demo\sendfile\ if you did not change the installation directory for WebRainbow.

  5. Click on Debug in VB IDE for detailed debug instruction.

  6. Click following link to

Good luck!


For the latest information on WebRainbow, please see:
http://www.dmfsys.com/wrainbow/

For questions / comments please email to:
support@dmfsys.com


Copyright © 2000 - 2005 D.M.F. Systems, Corporation. All rights reserved.

Last modified on March 2, 2005