Solved

"Automatic Proxy Configuration URL" or "Use Automatic Configuration script" at browsers

Posted on 2008-06-12
11
5,650 Views
Last Modified: 2012-08-14
Dear experts

At browser network setting
* Mozilla has "Automatic Proxy Configuration URL"
* IE called it as "Use Automatic Configuration script"

What is above parameter for?

At office I need to set those value at my browser(IE / Mozilla) to certain URL, e.g http://abc.com
But then, if I'm using other application (e.g TortoiseSVN, Paros Proxy) that will connect to "outside network" , there is no way to specify those parameter inside the application, hence it failed.

Any advice?


0
Comment
Question by:isuhendro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 11

Assisted Solution

by:MacNuttin
MacNuttin earned 100 total points
ID: 21776685
proxy
 An intermediary or "go-between" program that acts as both a
  server and a client for the purpose of making requests on behalf of other clients.

At your office there is a proxy setup so you are not directly accessing the internet. The proxy is connecting on your behalf and forwarding the "presumably filtered" results to your browser.

The settings simple point to the address of the proxy I think
0
 
LVL 11

Expert Comment

by:MacNuttin
ID: 21776698
You could setup ie to use proxy and use mozilla to directly browse the internet. And opera to use a second proxy - just a suggestion
0
 

Author Comment

by:isuhendro
ID: 21776756
Hi MacNuttin,

thank you for your response. btw still not clear what's the different between "normal"  & "automatic" proxy here..
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
LVL 11

Expert Comment

by:MacNuttin
ID: 21777084
Well I would expect it to be automatic if you don't tell browser config the address of proxy but rather have the proxy anounce itself in some discovery process of the browser
0
 
LVL 44

Accepted Solution

by:
Darr247 earned 120 total points
ID: 21778012
0
 

Author Comment

by:isuhendro
ID: 21799492
Hi MacNuttin,

I think you're right that there is some automation if I did not specify anything at browser.. but actually my question is about below configuration inside browser
* Mozilla has "Automatic Proxy Configuration URL"
* IE called it as "Use Automatic Configuration script"

(I need to fill in above configuration before able to connect).
0
 
LVL 11

Expert Comment

by:MacNuttin
ID: 21803381
And Like I said above other than using different browsers preconfigured for the different Proxy settings I know of no way to change proxy based on URL

But this is not so bad you can control what browser opens and thereby the proxy with a shortcut start in Mozilla for example for Proxy 1 shortcut start in IE for Proxy 2
0
 
LVL 10

Assisted Solution

by:lanboyo
lanboyo earned 100 total points
ID: 22155597
Both of those settings allow for a url to be specified for a file with a proxy configuration script.

The proxy configuration script is a file written in javascript to the netscape PAC syntax that tells the workstation what proxy servers to connect to, what domains or hosts to use proxies for, etc.

If this option is selected, the browser will try to download the file every time it starts up, and if it fails it will either use a previously downloaded file, or attempt to connect directly. Firefox will just attempt to coinnect directly.  This does not work for other applications on the workstation, just browsers. Occasionally Java will work using this, but not always.

If you do not have a web server hosting a PAC file, then you should not select that option.

The autodetect proxy configuration option in both firefox and ie will attempt to resolve a server named
" wpad " using the dns domain suffix list on the workstation, and if it resolves it, it will attempt to pull down a file using the url http://wpad.(domain suffix)/wpad.dat .

The wpad.dat file needs to be, you guessed it, a file configured in netscape PAC javascript format. This file isgenerated and placed automatically on servers running Windows Internet Proxy services .

0
 
LVL 1

Assisted Solution

by:dawez
dawez earned 180 total points
ID: 22182329
For Mozilla there is an extension FoxyProxy http://foxyproxy.mozdev.org/ which can be used to switch from a proxy to a non proxied environment with a click of mouse without need to go all the time in config. You can also define patterns of URLs to use with one proxy or another (yes you can also specify multiple proxies).

Internet explorer 7 seems to implement something similar via a plugin called  ie7pro http://www.ie7pro.com/proxy-switcher.html . I have not tried this one so I do not know how this is working.

If you are looking for a permanent solution to switch proxy upon connection, you can get the p that you have and create something like an hastable (ie.e. at work I have 10.x.x.x while at home 192.x.x.x). You can create a script with AutoIT (http://www.autoitscript.com/) or a similar tool to modify the explorer proxy. The proxy setting for explorer are stored in the registry [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings] which can be manipulated easily. The script for AutoIT will require less than 20 lines.. (something like VBScript).

Finally if you want to set all the programs to use the proxy specified in Explorer, you can use the command proxycfg (http://msdn.microsoft.com/en-us/library/aa384069.aspx) which should come standard with winXP.

As you may guessed I struggled a bit with proxies...

Hope that this will help.
Davide
0
 
LVL 1

Assisted Solution

by:dawez
dawez earned 180 total points
ID: 22183103

Hi I forgot to add the possibility of using the proxy.pac files which can do the same switching that I suggest to implement with AutoIT (switching proxy based on current local machine IP). You can find some good examples of configuring a pac file here : http://nscsysop.hypermart.net/proxypac.html . You can set up a proxy.pac that is switching proxy based on the destination url.

You can also add multiple proxy in the return function as in the code I attached. The multiple proxy will be tried one at once giving you the one that your machine can ping.
function FindProxyForURL(url, host) {
  var no_proxy = "DIRECT";
  if (isInNet(myIpAddress(), "10.0.0.0")) {
    return "PROXY 10.1.1.1:80"; PROXY 10.1.2.2:80; PROXY 10.3.2.3:8080";
  } else {
    return no_proxy ;
   }
}

Open in new window

0
 

Author Closing Comment

by:isuhendro
ID: 31466842
Thanks so much!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
This video demonstrates how to use each tool, their shortcuts, where and when to use them, and how to use the keyboard to improve workflow.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question