Forum Discussion
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:
- Parent Profile: httpclass
- HOST match only www.foo.com
- URI Path, Match Only: /VirtDirA/VirtDirB
- Action: send to none
- 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"?
2 Replies
- Mohamed_Lrhazi
Altocumulus
did you try "redirect" instead of "rewrite"? - What_Lies_Bene1
Cirrostratus
As the browser is not expecting to download a file this becomes a bit tricky. Can you not actually Redirect rather than Rewrite the URI?
Recent Discussions
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com