title: Using an auto-proxy configuration script with the android emulator
body: <p>I need to get the android emulator to use an auto-config proxy script.</p>
  
  <p>I already know the basics of having android emulator utilize a proxy, one must either submit the <code>http-proxy</code> argument when starting the emulator program, or have the <code>http_proxy</code> environmental variable set on the system. (See here <a href="http://developer.android.com/tools/help/emulator.html" rel="noreferrer">http://developer.android.com/tools/help/emulator.html</a>)</p>
  
  <p>However, my company uses an auto configuration script for its proxy, like this:</p>
  
  <p><code>http://autoproxy.company.org/proxy/west.pac</code> which turns out to be some java script like functions, actually.</p>
  
  <p>So, I need the android emulator to be able to utalize this automatic configuration script. Now, I have tried a few things, such as:</p>
  
  <p><code>set HTTP_PROXY=http://autoproxy.company.org/proxy/west.pac</code></p>
  
  <p>and I also tried adding it as the last parameter too.</p>
  
  <p><code>start /b emulator-x86.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86 -no-audio -http-proxy %HTTPS_PROXY%</code></p>
  
  <p>The above gave me the following error:</p>
  
  <blockquote>
    <p>emulator: http_proxy format unsupported, try 'proxy:port' or username:password@proxy:port'</p>
  </blockquote>
  
  <p>I can't find much detail on this on Google. Everyone seems to be able to use the tradition proxy means of user:pass@proxy:port but this simply doesn't work. In fact, it ends up getting my windows account locked out!</p>