pac

Examples of Hierarchical-Model-View-Controller (HMVC)?

Hi, I'm interested in the Presentation-Abstraction-Control? (aka Hierarchical-Model-View-Controller (HMVC)) Architectural Pattern for constructing complex user interfaces (GUI or web) and was wondering if anyone was aware of any examples in the wild where I could read the code? I'm aware of the JavaWorld article and associated letters...

Debugging autoproxy (PAC) javascript with alert()?

I am writing a custom .pac script for use with Firefox. Following numerous examples I've seen, I intersperse alert()s in order to debug it, but no alerts popup, even though the script is clearly being invoked. (I am clicking "Reload" in the "Connection settings" after each change to my script. I have even tried restarting Firefox.) Are ...

Where in Windows is the Javascript file which contains functions for executing PAC files?

Proxy Auto Config (PAC) is the traditional method by which web-browsers are automatically configured to use the appropriate proxy for any given site. PAC files consist of a single function implemented in JavaScript. I'd like to execute this function for another puropose: I'm trying to make an application which selects a proxy to use in...

How To Authenticate Socks 5 Proxies Inside PAC (Proxy Auto Config) Files

How can you setup PAC files to use SOCKS proxies with authentication? Using this simple PAC file as an example: function FindProxyForURL(url, host) { return "SOCKS 69.123.133.75:7257;"; } How would you connect to that socks proxy using a username and password? ...

IsInNet for ASP

First Post. So I am working on a project due to some drawbacks to the abilities of a standard PAC file. Basically we need to route proxy rules based on the internal subnet of the requester. Currently the IsInNet function is the option, however this is client side and has many failpoints due to it's dependency on the myIpAddress functi...

Handling large pac files in C# HTTPWebRequest

I currently have a C# application which makes frequent web requests that have to potentially go through proxy authentication. In this situation, a large PAC file (200kb+) is used to automatically configure the proxy and is stored on a remote server. When initializing the HttpWebRequest I have been setting the default proxy by using 'Web...