Debian Codegraph @

docs/man/man1/pactester.1

raw
1 .TH "pactester" "1" "" "" ""
2 .SH "NAME"
3 pactester \- Tool to test proxy auto\-config (pac) files.
4 .SH "SYNOPSIS"
5 .B pactester <\-p pacfile> <\-u url> [\-h host] [\-c client_ip] [\-e]
6 .PP
7 .B pactester <\-p pacfile> <\-f urlslist> [\-c client_ip] [\-e]
8 .SH "DESCRIPTION"
9 pactester is a tool to test proxy auto\-config (pac) files. It returns the
10 proxy config string for the given URL and the pac file. pactester uses
11 pacparser C library for most of its functionality.
12 .SH "OPTIONS"
13 .TP
14 .B \-p pacfile
15 PAC file to test. Specify "-" to read from the standard input.
16 .TP
17 .B \-u url
18 URL to test the PAC file for.
19 .TP
20 .B \-h host
21 Host part of the URL. If not specified, it's determined from the URL.
22 .TP
23 .B \-c client_ip
24 Client's IP address (as returned by the function myIpAddress() in PAC files).
25 If not specified, it defaults to the IP address of the machine on which
26 this tool is running.
27 .TP
28 .B \-e
29 Enable Microsoft PAC extensions (dnsResolveEx, myIpAddressEx, isResolvableEx).
30 .TP
31 .B \-f urlslist
32 A file containing the list of URLs to be tested. This is good for testing a PAC file against a set of URLs.
33 .SH "EXAMPLES"
34 .PP
35 To find out the proxy config string for the pac file "wpad.dat" and the URL
36 "http://www.google.com":
37 .PP
38 $ pactester \-p wpad.dat \-u http://www.google.com
39
40 For a client with IP address 10.0.12.123:
41 .PP
42 $ pactester \-p wpad.dat \-c 10.0.12.123 \-u http://www.google.com
43
44 For a pac file hosted at http://wpad/wpad.dat:
45 .PP
46 $ curl \-s http://wpad/wpad.dat | pactester \-p \- \-u http://google.com
47 .SH "BUGS"
48 If you have come across a bug in pactester, please submit a bug report at
49 http://github.com/manugarg/pacparser/issues.
50 .SH "AUTHOR"
51 Written by Manu Garg (http://www.manugarg.com).
52 .SH "RESOURCES"
53 Homepage: http://github.com/manugarg/pacparser.
54