System.out.println("Before");
zapClientAPI.ajaxSpider.scan(API_KEY, url, "False");
System.out.println("After");
Thread.sleep(1000);
Is that enough? Or should I do any extra context, and session set up?
> <mailto:zaproxy-users+unsub...@googlegroups.com>.
userId = extractUserId(zapClientAPI.users.newUser(API_KEY, contextId, "TestUser"));
System.out.println("Testing with user id: " + userId);
StringBuilder userAuthConfig = new StringBuilder();
userAuthConfig.append("username=").append(URLEncoder.encode(username, "UTF-8"));
userAuthConfig.append("&password=").append(URLEncoder.encode(password, "UTF-8"));
String authCon=userAuthConfig.toString();
zapClientAPI.users.setAuthenticationCredentials(API_KEY, contextId, userId, authCon);
System.out.println("New user added.");
zapClientAPI.users.setUserEnabled(API_KEY, contextId,userId,"True");
System.out.println("User : is now Enabled" );
System.out.println("Start spider as enabled user");
zapClientAPI.forcedUser.setForcedUserModeEnabled(API_KEY, true);
zapClientAPI.forcedUser.setForcedUser(API_KEY, contextId,userId);
System.out.println("Before");
zapClientAPI.ajaxSpider.scan(API_KEY, url, "false");
System.out.println("After");
Thread.sleep(1000);
> > <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to zaproxy-user...@googlegroups.com
> <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > > <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > > For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> > --
> > You received this message because you are subscribed to the
> > Groups "OWASP ZAP User Group" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send
> > an email to zaproxy-user...@googlegroups.com
> > <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to zaproxy-user...@googlegroups.com
> <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > > > <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > > > For more options, visit
> > https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>
> > > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>>.
> > >
> > > --
> > > You received this message because you are subscribed to the
> > > Groups "OWASP ZAP User Group" group.
> > > To unsubscribe from this group and stop receiving emails
> from
> > it, send
> > > an email to zaproxy-user...@googlegroups.com
> > > <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > > For more options, visit
> https://groups.google.com/d/optout <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "OWASP ZAP User Group" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to zaproxy-user...@googlegroups.com
> > <mailto:zaproxy-users+unsub...@googlegroups.com>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to zaproxy-user...@googlegroups.com
> <mailto:zaproxy-users+unsub...@googlegroups.com>.