How to use automatic proxy configuration script in Java

前端 未结 4 1557
囚心锁ツ
囚心锁ツ 2021-01-02 05:49

My Internet Explorer is set to have an automatic proxy file(so-called PAC) for web access. Is there a way to use this on my Java program, also ?

My below Java code

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 06:10

    Java does not have any built-in support for parsing the JS PAC file. You are on your own. What you can do is download that file and parse the proxy host from it. You should read this.

提交回复
热议问题