Forum Discussion

Yossi_100626's avatar
Yossi_100626
Icon for Nimbostratus rankNimbostratus
Oct 10, 2012

HTTP Class rewrite URI cause the save download file to be diffrent

Hi,

 

Does anyone knows how to set HTTP Class so it will redirect a virtual folder to download a file and keep the original file name?

 

 

I have configured an HTTP Class that does the following:

 

  1. Parent Profile: httpclass
  2. HOST match only www.foo.com
  3. URI Path, Match Only: /VirtDirA/VirtDirB
  4. Action: send to none
  5. Rewrite URI: /VirtDirX/VirtDirY/VirtDirZ/somefile.jar

The outcome of this configuration is when going to:

 

http://www.foo.com/VirtA/VirtB

 

The browser download a file called "download" (no extention or file type).

 

Doing MD5 hash reveals the file "download" and the file "somefile.jar" are identical the only diffrence is the file name.

 

The question is how do I make the rewrite to keep the file name of the downloaded file?

 

Meaning, how do I keep the file name "somefile.jar" instead of the rewrite to cause it to become "download"?