Forum Discussion
ciscozest_30697
Aug 03, 2018Nimbostratus
iRule cannot fetch iFile (wpad.dat)
I am having issue with iRule. Once it is applied to VS, I cannot access internet anymore and always got error message "You've asked for something we don't have" which is the default event from iRule....
Andy_McGrath
Aug 03, 2018Cumulonimbus
Your iRule is changing the requested URI in lowercase then your first match case contains upper case characters, try the following:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP:uri]] {
"/mdd/wpad.dat" {
HTTP::respond 200 contain [ifile get /MDD/wpad.dat] "Content-Type" "application/x-ns-proxy-autoconfig" "pragma" "no-cache"
}
default {
HTTP::respond 404 content "You've asked for something we don't have."
}
}
}
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