Commit 6e6b3cc8 authored by yihua.huang's avatar yihua.huang

add more status code for check

parent 47a03607
......@@ -87,6 +87,7 @@ public class ScriptConsole {
ScriptProcessor pageProcessor = ScriptProcessorBuilder.custom()
.language(params.getLanguage()).scriptFromFile(params.getScriptFileName()).build();
pageProcessor.getSite().setSleepTime(params.getSleepTime());
pageProcessor.getSite().setAcceptStatCode(Sets.<Integer>newHashSet(200, 404, 500));
Spider spider = Spider.create(pageProcessor).thread(params.getThread());
if (params.getUrls() == null || params.getUrls().size() == 0) {
System.err.println("Need at least one argument");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment