Table of Contents
pactester - Tool to test proxy auto-config (pac) files.
pactester
<-p pacfile> <-u url> [-h host] [-c client_ip]
pactester <-p pacfile> <-f urlslist> [-c
client_ip]
pactester is a tool to test proxy auto-config (pac)
files. It uses pacparser library to parse pac files and return proxy string
for the specified URL.
- -p pacfile
- PAC file to test.
- -u url
- URL to test
PAC file for.
- -h host
- Host part of the URL. If not specified, it’s determined
from the URL.
- -c client_ip
- Client’s IP address (as returned by the function
myIpAddress() in PAC files). If not specified, it defaults to the IP address
of the machine on which it is running.
- -f urlslist
- A file containing list
of URLs to be tested. This is good for testing a PAC file against a set
of URLs.
To find out proxy string as returned by pac file wpad.dat
for the URL http://www.google.com:
$ pactester -p wpad.dat -u http://www.google.com
For a client with IP address 10.0.12.123:
$ pactester -p wpad.dat -c 10.0.12.123 -u http://www.google.com
To find out proxy string for a list of urls specified
in /tmp/urls:
$ pactester -p wpad.dat -f /tmp/urls
If you have come across
a bug in pactester, please submit a bug report at http://code.google.com/p/pacparser/issues/list.
Written by Manu Garg (http://www.manugarg.com).
More information
about this version of pactester and pacparser library can be found at pacparser
homepage: http://code.google.com/p/pacparser.
Table of Contents