Forum Discussion
Luca_55898
Jul 05, 2011Nimbostratus
Using an iRule for a proxy pac file
Trying to get an iRule working to deploy a proxy pac file.
I have been reading this link http://devcentral.f5.com/wiki/default.aspx/iRules/Proxy_Pacfile_Hosting_without_need_for_Web_servers.htm...
mr_skater99_640
Jul 26, 2011Nimbostratus
Hi Guys,
I'm using a very very similar iRule. I've defined the pac file the same way, but the HTTP_REQUEST looks like this:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/proxy/pacfile.pac"} {
HTTP::respond 200 content $static::pacfile "Content-Type" "application/x-ns-proxy-autoconfig" "pragma" "no-cache"
}
}
But when i try and get the file i only get a portion (the same portion) of it every time before the connection is reset:
$ wget http://pachost/proxy/pacfile.pac
--2011-07-26 15:34:44-- http://pachost/proxy/pacfile.pac
Resolving pachost... 10.70.1.1
Connecting to pachost|10.70.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20476 (20K) [application/x-ns-proxy-autoconfig]
Saving to: `pacfile.pac'
27% [===========================================> ] 5,644 --.-K/s in 0s
2011-07-26 15:34:44 (502 MB/s) - Read error at byte 5644/20476 (Connection reset by peer). Retrying.
And it keeps failing at byte 5644.
Anyone have any suggestions?
Cheers,
Scotty
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