cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1579
Views
0
Helpful
2
Replies

Cloud Web Security - PAC syntax validation (for Hosted Config)

JP Babiera
Level 4
Level 4

Is there an online tool somewhere that can validate the PAC file used for hosted config?

 

The last time TAC looked and they provided a line by line check of the file summary of necessary changes/errors, and I was wondering if we had something similar available to us.

 

 

 

JP

2 Replies 2

Valter Da Costa
Cisco Employee
Cisco Employee

I personally never tried it but it could be what you are looking for. I will give it a try later this week.

http://www.manugarg.com/2007/01/google-code-introducing-pactester.html

Please share your comments after testing it.

Cheers,

-Valter

Thanks for that link.  I'm running into problems running it.

https://code.google.com/p/pacparser/downloads/list

I'm running Win7 x64 and trying to get the application to run/or even to register.  Copied the EXE and DLL into the Windows\System32 folder, runing the EXE fails because it can't find the DLL.  Registering the DLL to windows "regsvr32 pacparser.dll" fails to load.

After some googling and I found this

http://csi-windows.com/blog/all/73-windows-64-bit/378-fixing-qregsvr32-the-module-failed-to-load-the-specified-module-could-not-be-foundq

Got the DLL loaded, but "entry-point DllRegisterServer was not found"

ugh

anyway, I'll keep trying and looking for solutions.

JP

edit:

C:\>pactester

pactester.c: You didn't specify the PAC file

Usage:  pactester <-p pacfile> <-u url> [-h host] [-c client_ip] [-e]

        pactester <-p pacfile> <-f urlslist> [-c client_ip] [-e]

Options:

  -p pacfile   : PAC file to test (specify '-' to read from standard input)

  -u url       : URL to test for

  -h host      : Host part of the URL

  -c client_ip : client IP address (as returned by myIpAddres() function

                 in PAC files), defaults to IP address on which it is running.

  -e           : enable microsoft extensions (Ex functions)

  -f urlslist  : a file containing list of URLs to be tested.

  -v           : print version and exit

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: