我在测试程序 的时候 出现以下警告:
2009-9-7 15:23:23 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
警告: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://222.195.226.80:8080/script/Login.js', but got 'application/x-javascript'.
2009-9-7 15:23:23 com.gargoylesoftware.htmlunit.html.HtmlScript isExecutionNeeded
警告: Script is not JavaScript (type: , language: vbscript). Skipping execution.
2009-9-7 15:23:23 com.gargoylesoftware.htmlunit.html.HtmlScript isExecutionNeeded
警告: Script is not JavaScript (type: , language: vbscript). Skipping execution.
我引出的问题是:
1、htmlunit是否支持vbscript?
2、如果要提交有vbscript的页面应该使用什么?
3、httpclient的原理是什么?
4、htmlunit是否引用浏览器内核?各位大侠,非常谢谢
2009-9-7 15:23:23 com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
警告: Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://222.195.226.80:8080/script/Login.js', but got 'application/x-javascript'.
2009-9-7 15:23:23 com.gargoylesoftware.htmlunit.html.HtmlScript isExecutionNeeded
警告: Script is not JavaScript (type: , language: vbscript). Skipping execution.
2009-9-7 15:23:23 com.gargoylesoftware.htmlunit.html.HtmlScript isExecutionNeeded
警告: Script is not JavaScript (type: , language: vbscript). Skipping execution.
我引出的问题是:
1、htmlunit是否支持vbscript?
2、如果要提交有vbscript的页面应该使用什么?
3、httpclient的原理是什么?
4、htmlunit是否引用浏览器内核?各位大侠,非常谢谢
1、htmlunit是否支持vbscript?
据我所示,不支持。2、如果要提交有vbscript的页面应该使用什么?
不知道。3、httpclient的原理是什么?
在URLConnection的基础上做了封装,对返回的结果进行处理。4、htmlunit是否引用浏览器内核?
应该不引用。
如果htmlunit 没有引用内核,那么这是什么意思?
final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_7);
??
htmlunit不支持VBScript,抱得也是这个错