Session.setProxy with proxy bypass


There is API for setting proxy server: session.setProxy. What I need is to set also proxy bypass list. Does the appropriate API exist?

I know there is command line switch proxy-bypass-list, but I cannot set the proxy server at the application start via proxy-server, but have to use session.setProxy during the application run.


I solved it by session.setProxy with PAC file.


Can you share code about this matter?


Hey, did you get the solution ?