diff --git a/RecordScriptTestCase/baidu.html b/RecordScriptTestCase/baidu.html index ef723086..e0da4ad4 100644 --- a/RecordScriptTestCase/baidu.html +++ b/RecordScriptTestCase/baidu.html @@ -1,230 +1 @@ - - - - -Bench4Q - - - - - - - - - - - - - - - - - - - - - - -
- -
- -
- - - - -
-
-
-

Scripts

-
- -
-
- -
- - - - - - - - - -
脚本名称ID创建日期操作
-
-
- -
-
-
-
-

Latest Tests

-
- -
-
- -
- - - - - - - - - - - -
测试计划运行IDID创建日期status操作
-
-
- -
- -
- -
- - -
- - - - - - -
- - - - - - - - - - - - - - - -/
// examp: Accept image/jpeg - accept += " " + getRemainder(tz); + accept += getRemainder(tz); } else if (Token .equalsIgnoreCase(HeaderValue.REQUEST_ACCEPT_LANGUAGE + ":")) { - acceptLanguage += " " + getRemainder(tz); + acceptLanguage += getRemainder(tz); } else if (Token.equalsIgnoreCase("REFERER:")) { // line => referer = getRemainder(tz); - } else if (Token.equalsIgnoreCase("PRAGMA:")) { // Pragma: Token = getToken(tz); - if (Token.equalsIgnoreCase("NO-CACHE")) pragmaNoCache = true; else @@ -227,8 +225,8 @@ public class HttpRequestHeader { else Request += "Accept: */" + "* \r\n"; if (0 < acceptLanguage.length()) { - Request += HeaderValue.REQUEST_ACCEPT_LANGUAGE + acceptLanguage - + CR; + Request += HeaderValue.REQUEST_ACCEPT_LANGUAGE + ": " + + acceptLanguage + CR; } if (0 < contentType.length()) Request += "Content-Type: " + contentType + CR; diff --git a/src/main/java/org/bench4q/master/scriptrecord/httpcapture/RequestHandler.java b/src/main/java/org/bench4q/master/scriptrecord/httpcapture/RequestHandler.java index 1088fd3c..b845b522 100644 --- a/src/main/java/org/bench4q/master/scriptrecord/httpcapture/RequestHandler.java +++ b/src/main/java/org/bench4q/master/scriptrecord/httpcapture/RequestHandler.java @@ -45,6 +45,7 @@ public class RequestHandler implements Runnable { log.error("truncated request from browser: " + ExceptionLog.getStackTrace(e).toString() + this.header.url); + System.out.println(this.header.url); throw new Utils.SilentException(); } if (!this.header.url.startsWith("http")) diff --git a/src/main/java/org/bench4q/master/scriptrecord/httpcapture/generator/AbstractCodeGenerator.java b/src/main/java/org/bench4q/master/scriptrecord/httpcapture/generator/AbstractCodeGenerator.java index cad21787..0ddaca90 100644 --- a/src/main/java/org/bench4q/master/scriptrecord/httpcapture/generator/AbstractCodeGenerator.java +++ b/src/main/java/org/bench4q/master/scriptrecord/httpcapture/generator/AbstractCodeGenerator.java @@ -339,7 +339,7 @@ public abstract class AbstractCodeGenerator implements IScriptGenerator, if (responseHeader.isValidResponseHeader()) { if (responseHeader.isGoodRequest() && responseHeader.isHtmlContentType() - && responseParser.getResponseBody().contains("