Forum Discussion
sundogbrew
Altocumulus
Nov 05, 2013Adding a file to the F5 for download
I thought I submitted this yesterday but it didn't show up?
I am having networking problems slowness and inconsistency and have an idea about diagnostics. I have a script that I can run from m...
Kevin_Stewart
Employee
Nov 05, 2013You can do this with the HTTP::respond and iFiles commands. Take a look at the iFiles wiki page for a good example:
https://devcentral.f5.com/wiki/irules.iFile.ashx
And here's another example:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] equals "/test.js" } {
HTTP::respond 200 content [ifile get test_js] "Content-Type" "application/javascript"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects