Forum Discussion
dheywood_22484
Nimbostratus
Aug 01, 2014wpad.dat irule for F5
I've got a problem with an iRule, I've got a rule thats working:
when HTTP_REQUEST {
Send the wpad.dat content
HTTP::respond 200 content {\
return "DIRECT";}
}
Now I need to add the Content-Type"application/x-ns-proxy-autoconfig" to it, how would I edit the irule, I've got:
when HTTP_REQUEST {
Send the wpad.dat content
HTTP::respond 200 "Content-Type" "application/x-ns-proxy-autoconfig" content {\
return "DIRECT";}
}
but its not returning any content in the file but the header is set
1 Reply
- Kevin_Davies_40
Nacreous
when HTTP_REQUEST { Send the wpad.dat content HTTP::respond 200 content {\ return "DIRECT";} "Content-Type" "application/x-ns-proxy-autoconfig" }Any parameters following content are considered header and its value pairs. These are added as headers into the web response.
HTTP::respond 200 content "your html" header value header value ...
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
