Simply telnet to your webserver's port 80 and make a request like the
following.
GET /proxy.pac HTTP/1.0<enter>
<enter>
Be sure to actually hit your ENTER key there--twice--where I have
"<enter>". You can also request "/wpad.dat" in place of "/proxy.pac"
.. You should anticipate serving both files (as you've mentioned already.)
The response, on my systems, is similar to the following.
GET /proxy.pac HTTP/1.0
HTTP/1.1 200 OK
Date: Mon, 16 Oct 2006 20:38:35 GMT
Server: Apache/2.0.46 (Red Hat)
Connection: close
Content-Type: application/x-ns-proxy-autoconfig
function FindProxyForURL(url, host) {
if (
isPlainHostName( host ) ||
dnsDomainIs( host, ".utsouthwestern.edu" ) ||
host == "localhost" ||
host == "127.0.0.1" || ) {
return "DIRECT;" }
else {
return "PROXY proxy:3128; DIRECT;" }
}
Hope that helps,
Peter
Simone Rossato wrote:
Hi everybody,
I know that is a theme that is not strictly related to squid, but I
know that you're very expert in this arguments, so I hope that you can
help.
We have made an our own wpad.dat... but I can't find a real way to
test it! How can I check?
The only way is to check the squid log? Isn't There a way to test the
file and see if the syntax is correct or no?
Someone can help me?
Many thanks,
Bye,
SR