ZAP could not catch traffic from browser launched by IntelliJ IDEA

18 views
Skip to first unread message

henryh...@gmail.com

unread,
Mar 29, 2019, 3:11:55 AM3/29/19
to BDD-Security
Would you please help me on my problems. could not catch traffic from browser launched by IntelliJ IDEA

My steps:
1 Set proxy at browser, for example Chrome, using 127.0.0.1:8088
2 Set proxy at ZAP, set local proxy as 127.0.0.1: 8088

Try to launch chrome by manual and access some web site, ZAP could catch those URLs

Use Cucumber+IntelliJ + Java to document automation test cases, set proxy at my scripts

                        WebDriver driver;
                        ChromeOptions options = new ChromeOptions();
Proxy proxy = new Proxy();
proxy.setHttpProxy("127.0.0.1:8088");
options.setCapability("proxy", proxy);
driver().get("https://www.google.com");

After executed this script, ZAP could not catch the URL in script, how could I do?


Thanks

thc...@gmail.com

unread,
Mar 29, 2019, 5:41:40 AM3/29/19
to bdd-se...@googlegroups.com
Hi.

Which Chrome version are you using? Since version 72 Chrome no longer
proxies loopback addresses by default, you need to add the argument:
--proxy-bypass-list=<-loopback>

Best regards.

henryh...@gmail.com

unread,
Mar 29, 2019, 9:27:57 AM3/29/19
to BDD-Security
Thanks for your help, my chrome is 73.0.3683.86
Try to add --proxy-bypass-list=<-loopback>, but could not work, any other problem I missed?

proxy.setHttpProxy("127.0.0.1:8090");
options.addArguments("--proxy-bypass-list=<-loopback> ");
options.setCapability("proxy", proxy);

在 2019年3月29日星期五 UTC+8下午5:41:40,thc202写道:

thc...@gmail.com

unread,
Mar 29, 2019, 9:33:43 AM3/29/19
to bdd-se...@googlegroups.com
The port does not look right, is that a typo or ZAP was changed to
listen on 8090?

The space in the argument is not needed, it probably does not make any
difference though.

Best regards.

On 29/03/2019 13:27, henryh...@gmail.com wrote:
> Thanks for your help, my chrome is 73.0.3683.86
> Try to add --proxy-bypass-list=<-loopback>, but could not work, any other
> problem I missed?
>
> proxy.setHttpProxy("127.0.0.1:8090");
> options.addArguments("--proxy-bypass-list=<-loopback> ");
> options.setCapability("proxy", proxy);
>
>
> 在 2019年3月29日星期五 UTC+8下午5:41:40,thc202写道:
>>
>> Hi.
>>
>> Which Chrome version are you using? Since version 72 Chrome no longer
>> proxies loopback addresses by default, you need to add the argument:
>> --proxy-bypass-list=<-loopback>
>>
>> Best regards.
>>

henryh...@gmail.com

unread,
Mar 29, 2019, 9:38:25 AM3/29/19
to BDD-Security
Yes, I changed it from 8080 to 8090
Seems I do not add space in argument:(

Best Regards

在 2019年3月29日星期五 UTC+8下午9:33:43,thc202写道:
Reply all
Reply to author
Forward
0 new messages