In Firefox internet connection is made through a proxy auto configuration file something.pac.
How do I know for a certain URL which proxy server is being used?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
.pac file is just an ECMAscript – aka JavaScript. Check out the wikipedia article on the file format.
If you copy the PAC code you can process it to see what proxy is being used based on the target url. If you are feeling fancy, you can wrap the script into a web page (locally) to create a tool to evaluate locally.
Edit:
As an alternative to the method I started recommending, you might check out PACTester, available on Google Code. This will allow you to quickly test a range of options.
If you have .Net available and are interested in playing with C# then you can check out this article on MSDN which has code you can use in a similar fashion to the above.
To expand on the original method outlined above, there are a number of functions which may (and typically are) provided by the host browser. The basic function which must be implemented in a
pacfile isFindProxyForUrl(). This accepts two parameters: the url and the host (the host derived from the name of url). The “provided” functions include:isInNet(),localHostOrDomainIs(),isPlainHostName(),isResolvable(), etc.If you are working in a Microsoft environment then you can check out this page on Technet which describes the .pac format with some useful examples.
Per the Microsoft documentation for
isInNet():If you want to get technical, here is the Mozilla source code for the implementation of proxy auto-config related services. It specifies the JS code for
isInNet()as:Hope that helps!