cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
762
Views
0
Helpful
2
Replies
JP Babiera
Enthusiast

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

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

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

Content for Community-Ad

This widget could not be displayed.