From your mail it seems to me that you are passing CGI script itself
to pactester. That won't work. Let your CGI script return PAC file.
Save that PAC file and then pass that to pactester.
Hope that helps!
"Journey is the destination of life."