Forum Discussion
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