Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

Bypassing proxy for certain urls.

Hi all,

I have a program that connect to different hosts.  Certain hosts will require proxy and certain hosts will need to use intranet directly.  However, when I set proxy by doing this, I have to use proxy all the time.

    System.setProperty("https.proxyHost", "myproxy");
    System.setProperty("https.proxyPort", "80");

Any suggestion?
0
tutran
Asked:
tutran
1 Solution
 
CEHJCommented:
Set it only when you *do* need it?
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now