I have stopped maintaining this version of pactester. Please use the version that comes with pacparser. -Manu Garg
Usage: ./pactester <-p pacfile> <-u url> [-h host] [-c client_ip] ./pactester <-p pacfile> <-f urlslist> [-c client_ip]
Options: -p pacfile: PAC file to test -u url: URL to test -h host: Host part of the URL -c client_ip: client IP address (defaults to IP address of the machine on which script is running) -f urlslist: a file containing list of URLs to be tested.
* How It Works?
Please see 'INSTALL' in the root directory of the package.
* How to use it?
Pactester can be used to determine the proxy for a single URL or a list of URLs.
For a list of URLs : ./pactester -p www.pac -f urllist where urllist is a file containing the list of URLs separated by newline.
* Extending command line web clients:
Pactester can be also be used to extend command line web clients like curl and perl-libwww library.
To use it with curl: Right now, curl doesn't have the functionality to evaluate PAC files to find out proxy for a given URL. However, based on pactester, you can write a wrapper perl script around curl. This perl script will first find out the proxy for the URL, the way that pactester finds out, and then it will call curl with the option '-x "proxy server as returned by pactester method"'.
Similarly, this method can be used inside perl-libwww web clients too.
- Platforms ---------
Pactester has been tested to work on Linux and Intel Macs.
Author: Manu Garg firstname.lastname@example.org Copyright (C) 2007 Google Inc.