views:

364

answers:

0

There are similar questions out here that describe how to get the default proxy settings of the user, but what happens if let's say the user's default browser is IE, but they are using Firefox? I need to grab their current Firefox settings. Is there a way to get at these settings?

It is safe to assume that I am able to detect what browser to get the settings for.

I know WebRequest.DefaultWebProxy returns an IWebProxy with the Default browser's proxy info, but is there another way to get at browser specific settings?

Also, as far as I know, Firefox is the only other "major" web browser that can have its own proxy settings. I also know that there is a file that Firefox creates with its various proxy settings, PROFILES.INI. I'm able to actually open and parse that file, the only particular problem I have with this method is when the user is using the 'Automatic Configuration Script" setting in the Firefox proxy settings, I'm able to read the path to the ".pac" file, but can't actually get at the underlying proxy url string interpreted by the Javascript functions within the .pac file.