| 1 |
<!-- manual page source format generated by PolyglotMan v3.2, --> |
| 2 |
<!-- available at http://polyglotman.sourceforge.net/ --> |
| 3 |
|
| 4 |
<html> |
| 5 |
|
| 6 |
<head> |
| 7 |
<title>"pactester"("1") manual page</title> |
| 8 |
</head> |
| 9 |
|
| 10 |
<body bgcolor='white'> |
| 11 |
<a href='#toc'>Table of Contents</a> |
| 12 |
<p> |
| 13 |
|
| 14 |
<h2><a name='sect0' href='#toc0'>Name</a></h2> |
| 15 |
pactester - Tool to test proxy auto-config (pac) files. |
| 16 |
<h2><a name='sect1' href='#toc1'>Synopsis</a></h2> |
| 17 |
<b>pactester |
| 18 |
<-p pacfile> <-u url> [-h host] [-c client_ip] [-e]</b> |
| 19 |
<p> |
| 20 |
<b>pactester <-p pacfile> <-f urlslist> |
| 21 |
[-c client_ip] [-e]</b> |
| 22 |
<h2><a name='sect2' href='#toc2'>Description</a></h2> |
| 23 |
pactester is a tool to test proxy auto-config |
| 24 |
(pac) files. It returns the proxy config string for the given URL and the |
| 25 |
pac file. pactester uses pacparser C library for most of its functionality. |
| 26 |
|
| 27 |
<h2><a name='sect3' href='#toc3'>Options</a></h2> |
| 28 |
|
| 29 |
<dl> |
| 30 |
|
| 31 |
<dt><b>-p pacfile</b> </dt> |
| 32 |
<dd>PAC file to test. Specify "-" to read from the standard |
| 33 |
input. </dd> |
| 34 |
|
| 35 |
<dt><b>-u url</b> </dt> |
| 36 |
<dd>URL to test the PAC file for. </dd> |
| 37 |
|
| 38 |
<dt><b>-h host</b> </dt> |
| 39 |
<dd>Host part of the URL. If |
| 40 |
not specified, it’s determined from the URL. </dd> |
| 41 |
|
| 42 |
<dt><b>-c client_ip</b> </dt> |
| 43 |
<dd>Client’s IP address |
| 44 |
(as returned by the function myIpAddress() in PAC files). If not specified, |
| 45 |
it defaults to the IP address of the machine on which this tool is running. |
| 46 |
</dd> |
| 47 |
|
| 48 |
<dt><b>-e</b> </dt> |
| 49 |
<dd>Enable Microsoft PAC extensions (dnsResolveEx, myIpAddressEx, isResolvableEx). |
| 50 |
</dd> |
| 51 |
|
| 52 |
<dt><b>-f urlslist</b> </dt> |
| 53 |
<dd>A file containing the list of URLs to be tested. This is good |
| 54 |
for testing a PAC file against a set of URLs. </dd> |
| 55 |
</dl> |
| 56 |
|
| 57 |
<h2><a name='sect4' href='#toc4'>Examples</a></h2> |
| 58 |
<p> |
| 59 |
To find out the proxy |
| 60 |
config string for the pac file "wpad.dat" and the URL "<a href='http://www.google.com'>http://www.google.com</a> |
| 61 |
": |
| 62 |
<p> |
| 63 |
$ pactester -p wpad.dat -u <a href='http://www.google.com'>http://www.google.com</a> |
| 64 |
|
| 65 |
<p> For a client with IP address |
| 66 |
10.0.12.123: |
| 67 |
<p> |
| 68 |
$ pactester -p wpad.dat -c 10.0.12.123 -u <a href='http://www.google.com'>http://www.google.com</a> |
| 69 |
|
| 70 |
<p> For a |
| 71 |
pac file hosted at <a href='http://wpad/wpad.dat:'>http://wpad/wpad.dat:</a> |
| 72 |
<p> |
| 73 |
$ curl -s <a href='http://wpad/wpad.dat'>http://wpad/wpad.dat</a> |
| 74 |
| pactester |
| 75 |
-p - -u <a href='http://google.com'>http://google.com</a> |
| 76 |
|
| 77 |
<h2><a name='sect5' href='#toc5'>Bugs</a></h2> |
| 78 |
If you have come across a bug in pactester, please |
| 79 |
submit a bug report at <a |
| 80 |
href='http://github.com/manugarg/pacparser/issues.'>http://github.com/manugarg/pacparser/issues.</a> |
| 81 |
|
| 82 |
<h2><a name='sect6' href='#toc6'>Author</a></h2> |
| 83 |
Written |
| 84 |
by Manu Garg (http://www.manugarg.com). |
| 85 |
<h2><a name='sect7' href='#toc7'>Resources</a></h2> |
| 86 |
Homepage: <a href='http://github.com/manugarg/pacparser.'>http://github.com/manugarg/pacparser.</a> |
| 87 |
|
| 88 |
|
| 89 |
<p> |
| 90 |
<p> |
| 91 |
|
| 92 |
<hr> |
| 93 |
<p> |
| 94 |
<a name='toc'><b>Table of Contents</b></a> |
| 95 |
<p> |
| 96 |
<ul> |
| 97 |
<li><a name='toc0' href='#sect0'>Name</a></li> |
| 98 |
<li><a name='toc1' href='#sect1'>Synopsis</a></li> |
| 99 |
<li><a name='toc2' href='#sect2'>Description</a></li> |
| 100 |
<li><a name='toc3' href='#sect3'>Options</a></li> |
| 101 |
<li><a name='toc4' href='#sect4'>Examples</a></li> |
| 102 |
<li><a name='toc5' href='#sect5'>Bugs</a></li> |
| 103 |
<li><a name='toc6' href='#sect6'>Author</a></li> |
| 104 |
<li><a name='toc7' href='#sect7'>Resources</a></li> |
| 105 |
</ul> |
| 106 |
</body> |
| 107 |
|
| 108 |
</html> |