Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Proxy Configuration

Status
Not open for further replies.

laoise

Programmer
Jun 25, 2002
2
IE

Automatic proxy configuration is supported in a browser by setting a particular URL that contains a JavaScript file with .pac or .js extension. This file contains a function called FindProxyForURL that contains the logic to determine which proxy server to use when the browser receives a connection request.

During startup, the Java Plug-in downloads the JavaScript file to the local machine using direct connection. Then whenever it needs to make a new connection, it executes the FindProxyForURL function to obtain the proxy information using the JavaScript engine in IE.

Can anyone tell me - is it possible to access/execute the FindProxyForUrl function from within a java applet? How does the plug-in do it? Is the Sun Java plug-in source code available anywhere?
 
Non-signed applets run in a sandbox and cannot access the filesystems. Off the top of my head, I would say that what you are trying to do is not possible with a normal applet. The are a bunch of recent threads that address this issue.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top