You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(17) |
Aug
(18) |
Sep
(22) |
Oct
(16) |
Nov
(6) |
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(11) |
Feb
(10) |
Mar
(34) |
Apr
(26) |
May
(6) |
Jun
(22) |
Jul
(14) |
Aug
(4) |
Sep
(47) |
Oct
(69) |
Nov
(23) |
Dec
(21) |
2005 |
Jan
(53) |
Feb
(33) |
Mar
(92) |
Apr
(65) |
May
(63) |
Jun
(57) |
Jul
(43) |
Aug
(132) |
Sep
(61) |
Oct
(75) |
Nov
(60) |
Dec
(130) |
2006 |
Jan
(74) |
Feb
(87) |
Mar
(101) |
Apr
(58) |
May
(54) |
Jun
(42) |
Jul
(31) |
Aug
(67) |
Sep
(61) |
Oct
(71) |
Nov
(28) |
Dec
(58) |
2007 |
Jan
(53) |
Feb
(50) |
Mar
(96) |
Apr
(66) |
May
(55) |
Jun
(130) |
Jul
(99) |
Aug
(115) |
Sep
(37) |
Oct
(78) |
Nov
(24) |
Dec
(70) |
2008 |
Jan
(94) |
Feb
(85) |
Mar
(197) |
Apr
(274) |
May
(119) |
Jun
(143) |
Jul
(193) |
Aug
(99) |
Sep
(160) |
Oct
(120) |
Nov
(178) |
Dec
(109) |
2009 |
Jan
(238) |
Feb
(169) |
Mar
(115) |
Apr
(109) |
May
(131) |
Jun
(167) |
Jul
(144) |
Aug
(193) |
Sep
(155) |
Oct
(154) |
Nov
(97) |
Dec
(127) |
2010 |
Jan
(108) |
Feb
(127) |
Mar
(176) |
Apr
(113) |
May
(130) |
Jun
(200) |
Jul
(115) |
Aug
(80) |
Sep
(92) |
Oct
(101) |
Nov
(124) |
Dec
(53) |
2011 |
Jan
(67) |
Feb
(144) |
Mar
(88) |
Apr
(60) |
May
(89) |
Jun
(54) |
Jul
(68) |
Aug
(81) |
Sep
(48) |
Oct
(40) |
Nov
(10) |
Dec
(20) |
2012 |
Jan
(21) |
Feb
(28) |
Mar
(17) |
Apr
(35) |
May
(41) |
Jun
(44) |
Jul
(68) |
Aug
(67) |
Sep
(89) |
Oct
(58) |
Nov
(47) |
Dec
(56) |
2013 |
Jan
(49) |
Feb
(28) |
Mar
(46) |
Apr
(31) |
May
(28) |
Jun
(37) |
Jul
(34) |
Aug
(52) |
Sep
(42) |
Oct
(108) |
Nov
(59) |
Dec
(56) |
2014 |
Jan
(41) |
Feb
(72) |
Mar
(46) |
Apr
(21) |
May
(19) |
Jun
(17) |
Jul
(15) |
Aug
(40) |
Sep
(11) |
Oct
(3) |
Nov
(5) |
Dec
(31) |
2015 |
Jan
(11) |
Feb
(12) |
Mar
(19) |
Apr
(19) |
May
(38) |
Jun
(54) |
Jul
(14) |
Aug
(42) |
Sep
(14) |
Oct
(16) |
Nov
(26) |
Dec
(14) |
2016 |
Jan
(3) |
Feb
(1) |
Mar
(24) |
Apr
(5) |
May
(15) |
Jun
(14) |
Jul
(33) |
Aug
(19) |
Sep
(8) |
Oct
(10) |
Nov
|
Dec
(2) |
2017 |
Jan
(16) |
Feb
(12) |
Mar
(23) |
Apr
(8) |
May
(11) |
Jun
(20) |
Jul
(21) |
Aug
(20) |
Sep
|
Oct
(6) |
Nov
(9) |
Dec
(2) |
2018 |
Jan
(7) |
Feb
(5) |
Mar
(6) |
Apr
(5) |
May
(1) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(4) |
2019 |
Jan
(2) |
Feb
(2) |
Mar
(3) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
|
Oct
(4) |
Nov
(1) |
Dec
(7) |
2020 |
Jan
(2) |
Feb
(6) |
Mar
(9) |
Apr
(1) |
May
(1) |
Jun
(15) |
Jul
(1) |
Aug
(1) |
Sep
(2) |
Oct
(6) |
Nov
(3) |
Dec
(5) |
2021 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(1) |
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(6) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: praveennin <pra...@gm...> - 2013-10-28 13:55:04
|
Ahmed, Yes. I knew it's an java script error. But Inspite of using some relevant possible htmlunit properties, I couldn't fix it. Can you suggest me some ideas? Thanks, Praveen -- View this message in context: http://htmlunit.10904.n7.nabble.com/ReferenceError-ssn-is-not-defined-tp32039p32045.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Andrew P. <ape...@42...> - 2013-10-28 13:52:07
|
I am able to mitigate this issue by manually specifying the httpcomponents version in my pom: <dependency> <groupId>net.sourceforge.htmlunit</groupId> <artifactId>htmlunit</artifactId> <version>2.13</version> </dependency> <!-- Fix dependency error --> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.3.1</version> </dependency> But I would like a more permanent solution. On Mon, Oct 28, 2013 at 9:48 AM, Andrew Pennebaker <ape...@42...>wrote: > When I try to use the WebClient() constructor, Java complains of an error. > > $ mvn compile > > java.lang.NoClassDefFoundError: > org/apache/http/conn/scheme/SchemeSocketFactory > at > com.gargoylesoftware.htmlunit.WebClient.createWebConnection(WebClient.java:1862) > at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:129) > at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:184) > > $ tail pom.xml > <dependency> > <groupId>net.sourceforge.htmlunit</groupId> > <artifactId>htmlunit</artifactId> > <version>2.13</version> > </dependency> > </dependencies> > </project> > > $ specs java os > Specs: > > specs 0.7 > https://github.com/mcandre/specs#readme > > mvn --version > Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 > 11:22:22-0400) > Maven home: /usr/local/Cellar/maven/3.1.1/libexec > Java version: 1.6.0_65, vendor: Apple Inc. > Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home > Default locale: en_US, platform encoding: MacRoman > OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac" > > echo $CLASSPATH > > > echo $JAVA_HOME > /Library/Java/Home > > javac -version > javac 1.6.0_65 > > java -version > java version "1.6.0_65" > Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) > Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) > > system_profiler SPSoftwareDataType | grep 'System Version' > System Version: OS X 10.9 (13A603) > > -- > Cheers, > > Andrew Pennebaker > ape...@42... > -- Cheers, Andrew Pennebaker ape...@42... |
From: Andrew P. <ape...@42...> - 2013-10-28 13:48:37
|
When I try to use the WebClient() constructor, Java complains of an error. $ mvn compile java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory at com.gargoylesoftware.htmlunit.WebClient.createWebConnection(WebClient.java:1862) at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:129) at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:184) $ tail pom.xml <dependency> <groupId>net.sourceforge.htmlunit</groupId> <artifactId>htmlunit</artifactId> <version>2.13</version> </dependency> </dependencies> </project> $ specs java os Specs: specs 0.7 https://github.com/mcandre/specs#readme mvn --version Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 11:22:22-0400) Maven home: /usr/local/Cellar/maven/3.1.1/libexec Java version: 1.6.0_65, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.9", arch: "x86_64", family: "mac" echo $CLASSPATH echo $JAVA_HOME /Library/Java/Home javac -version javac 1.6.0_65 java -version java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) system_profiler SPSoftwareDataType | grep 'System Version' System Version: OS X 10.9 (13A603) -- Cheers, Andrew Pennebaker ape...@42... |
From: Ahmed A. <asa...@ya...> - 2013-10-28 11:08:56
|
Hi Praveennin, You may have an error in JavaScript. Please read http://htmlunit.sourceforge.net/submittingJSBugs.html Yours, Ahmed ________________________________ From: praveennin <pra...@gm...> To: htm...@li... Sent: Monday, October 28, 2013 2:01 PM Subject: [Htmlunit-user] ReferenceError: "ssn" is not defined While trying to click the button, it throws the following Reference error saying session is not defined. How to overcome this issue??? *net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "ssn" is not defined. *(https://epo.schneider-electric.com/duke/script/Communication.js#133) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3790) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3768) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3852) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1784) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1780) at script.raiseEIException(https://epo.schneider-electric.com/duke/script/Communication.js:133) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:854) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3183) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.host.Window.triggerOnError(Window.java:1085) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.handleJavaScriptException(JavaScriptEngine.java:677) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:595) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:453) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:470) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:870) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:368) at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:230) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:240) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:598) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:556) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1142) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1044) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3018) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2005) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:908) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:789) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:225) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:179) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:221) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:106) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:311) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389) at urjanet.pull.web.BasicClickRequest.doRequest(BasicClickRequest.java:288) at urjanet.pull.web.NavigationNode$1.performOperation(NavigationNode.java:145) at urjanet.pull.web.NavigationNode$1.performOperation(NavigationNode.java:1) at urjanet.util.RetryOperation.performOperation(RetryOperation.java:50) at urjanet.util.RetryOperation.performOperation(RetryOperation.java:44) at urjanet.pull.web.NavigationNode.navigate(NavigationNode.java:152) at urjanet.pull.web.NavigationNode.run(NavigationNode.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) -- View this message in context: http://htmlunit.10904.n7.nabble.com/ReferenceError-ssn-is-not-defined-tp32039.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: praveennin <pra...@gm...> - 2013-10-28 11:01:55
|
While trying to click the button, it throws the following Reference error saying session is not defined. How to overcome this issue??? *net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "ssn" is not defined. *(https://epo.schneider-electric.com/duke/script/Communication.js#133) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3790) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3768) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3852) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1784) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1780) at script.raiseEIException(https://epo.schneider-electric.com/duke/script/Communication.js:133) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:854) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:164) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:429) at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:267) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3183) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:162) at com.gargoylesoftware.htmlunit.javascript.host.Window.triggerOnError(Window.java:1085) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.handleJavaScriptException(JavaScriptEngine.java:677) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:595) at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.compile(JavaScriptEngine.java:453) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:470) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptIfPossible(HtmlPage.java:870) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeInlineScriptIfNeeded(HtmlScript.java:302) at com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:368) at com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:230) at com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:240) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:598) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:556) at org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1142) at org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1044) at org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206) at org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329) at org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:3018) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2005) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:908) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:789) at com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:225) at com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:179) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:221) at com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:106) at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:433) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:311) at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:389) at urjanet.pull.web.BasicClickRequest.doRequest(BasicClickRequest.java:288) at urjanet.pull.web.NavigationNode$1.performOperation(NavigationNode.java:145) at urjanet.pull.web.NavigationNode$1.performOperation(NavigationNode.java:1) at urjanet.util.RetryOperation.performOperation(RetryOperation.java:50) at urjanet.util.RetryOperation.performOperation(RetryOperation.java:44) at urjanet.pull.web.NavigationNode.navigate(NavigationNode.java:152) at urjanet.pull.web.NavigationNode.run(NavigationNode.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) -- View this message in context: http://htmlunit.10904.n7.nabble.com/ReferenceError-ssn-is-not-defined-tp32039.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |
From: Ronald B. <rb...@rb...> - 2013-10-28 08:08:34
|
Hi Ken, did some checking of the html5 spec "The applet element is a Java-specific variant of the embed element. The applet element is now obsoleted so that all extension frameworks (Java, .NET, Flash, etc) are handled in a consistent manner. " So i think HtmlUnit has to move forward and make the embed tag support a bit more clever to support at least applets at the same level like the applet tag. But as always this requires some time to implement. Please open an issue for that. How fast do you need a solution for that? Do you like to provide a patch? At least some testcases? RBRi On Sun, 27 Oct 2013 21:33:37 +0000 McCray, Ken wrote: > >I think I see why the applet is not starting. HTMLUNIT does not look to recognize this code > ><EMBED id = "sdcEmbed" type = "application/x-java-applet;version=1.4" CODE = "rss.sdc.SdcApplet.class" ARCHIVE = "SdcApplet.jar,tunnelhttp.jar,httptunnel.jar,rssjschnocrypt.jar,rssjschcrypt.jar" WIDTH = 220 HEIGHT = 50 serverHost >="securelink.carebridge.net" serverUPort="7891" securePort="22" debugFlag ="false" userId ="eszi74s" sessionId ="24741" disableIpConnect = "false" enableIpMapping = "true" enableHostNameMapping = "false" mayscript="true" pluginspage >= "https://java.sun.com/products/plugin/index.html#download"> <NOEMBED> </NOEMBED> </EMBED> > >As an applet. Is there a workaround for this? I can convert this tag to an applet tag but can I infuse that into the HTMLPage and execute it? > > > >-----Original Message----- >From: Ronald Brill [mailto:rb...@rb...] >Sent: Friday, October 25, 2013 12:29 PM >To: htm...@li... >Subject: Re: [Htmlunit-user] Running an Applet and Processing JRE Challenges > >Ken, > >WETATOR has a simple support for applet checkin build in. We have at least one test suite that uses this. The idea is to do some regression testing because they had many classpath problem in the past. >If you like you can have a look at the code > https://wetator.repositoryhosting.com/trac/wetator_wetator/browser/trunk/wetator/src/org/wetator/commandset/IncubatorCommandSet.java#L276 > >You can ask for the applet from your code and this will start the applet livecycle. If this does not throw an exception you know that the applet was started. >Your code is in charge for stopping the applet. >And you get the Applet instance back, so you can do some method calling if you like. > > RBRi > > > >On Fri, 25 Oct 2013 16:08:29 +0000 McCray, Ken wrote: >> >>I am not sure if the applet is running because I don't get the normal >>access challenge from running the applet. If the applet generates a pop >>up requesting allow or do not allow how to I >trap that in htmlunit? >> >> >> >>-----Original Message----- >>From: Ronald Brill [mailto:rb...@rb...] >>Sent: Friday, October 25, 2013 11:56 AM >>To: Ahmed Ashour; htm...@li... >>Subject: Re: [Htmlunit-user] Running an Applet and Processing JRE >>Challenges >> >>Hi Ken, >> >>think that the support is not that limited. >>What do you like to do? >> >> RBRi >> >> >>On Fri, 25 Oct 2013 08:47:12 -0700 (PDT) Ahmed Ashour wrote: >>> >>>Hi Ken, >>> >>>There is minimal support for applets, why do you need to specify the JRE? >>> >>>You need to use webClient.getOptions().setAppletEnabled(true); >>> >>>Yours, >>>Ahmed Ashour >>> >>>________________________________ >>> From: "McCray, Ken" <Ken...@Mc...> >>>To: "htm...@li..." >>><htm...@li...> >>>Sent: Friday, October 25, 2013 5:00 PM >>>Subject: [Htmlunit-user] Running an Applet and Processing JRE >>>Challenges >>> >>> >>> >>> >>> >>>Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? >>>---------------------------------------------------------------------- >>>- >>>------- >>>October Webinars: Code for Performance Free Intel webinars can help >>>you accelerate application performance. >>>Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >>>most from the latest Intel processors and coprocessors. See abstracts >>>and register > >>>http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.c >>>l ktrk _______________________________________________ >>>Htmlunit-user mailing list >>>Htm...@li... >>>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >>> >> >> >>----------------------------------------------------------------------- >>------- >>October Webinars: Code for Performance >>Free Intel webinars can help you accelerate application performance. >>Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >>most from the latest Intel processors and coprocessors. See abstracts >>and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg..clktrk >>_______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >>----------------------------------------------------------------------- >>------- >>October Webinars: Code for Performance >>Free Intel webinars can help you accelerate application performance. >>Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >>most from the latest Intel processors and coprocessors. See abstracts >>and register > >>http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.cl >>ktrk _______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > >------------------------------------------------------------------------------ >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg..clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >------------------------------------------------------------------------------ >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from >the latest Intel processors and coprocessors. See abstracts and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: McCray, K. <Ken...@Mc...> - 2013-10-27 21:33:47
|
I think I see why the applet is not starting. HTMLUNIT does not look to recognize this code <EMBED id = "sdcEmbed" type = "application/x-java-applet;version=1.4" CODE = "rss.sdc.SdcApplet.class" ARCHIVE = "SdcApplet.jar,tunnelhttp.jar,httptunnel.jar,rssjschnocrypt.jar,rssjschcrypt.jar" WIDTH = 220 HEIGHT = 50 serverHost ="securelink.carebridge.net" serverUPort="7891" securePort="22" debugFlag ="false" userId ="eszi74s" sessionId ="24741" disableIpConnect = "false" enableIpMapping = "true" enableHostNameMapping = "false" mayscript="true" pluginspage = "https://java.sun.com/products/plugin/index.html#download"> <NOEMBED> </NOEMBED> </EMBED> As an applet. Is there a workaround for this? I can convert this tag to an applet tag but can I infuse that into the HTMLPage and execute it? -----Original Message----- From: Ronald Brill [mailto:rb...@rb...] Sent: Friday, October 25, 2013 12:29 PM To: htm...@li... Subject: Re: [Htmlunit-user] Running an Applet and Processing JRE Challenges Ken, WETATOR has a simple support for applet checkin build in. We have at least one test suite that uses this. The idea is to do some regression testing because they had many classpath problem in the past. If you like you can have a look at the code https://wetator.repositoryhosting.com/trac/wetator_wetator/browser/trunk/wetator/src/org/wetator/commandset/IncubatorCommandSet.java#L276 You can ask for the applet from your code and this will start the applet livecycle. If this does not throw an exception you know that the applet was started. Your code is in charge for stopping the applet. And you get the Applet instance back, so you can do some method calling if you like. RBRi On Fri, 25 Oct 2013 16:08:29 +0000 McCray, Ken wrote: > >I am not sure if the applet is running because I don't get the normal >access challenge from running the applet. If the applet generates a pop >up requesting allow or do not allow how to I trap that in htmlunit? > > > >-----Original Message----- >From: Ronald Brill [mailto:rb...@rb...] >Sent: Friday, October 25, 2013 11:56 AM >To: Ahmed Ashour; htm...@li... >Subject: Re: [Htmlunit-user] Running an Applet and Processing JRE >Challenges > >Hi Ken, > >think that the support is not that limited. >What do you like to do? > > RBRi > > >On Fri, 25 Oct 2013 08:47:12 -0700 (PDT) Ahmed Ashour wrote: >> >>Hi Ken, >> >>There is minimal support for applets, why do you need to specify the JRE? >> >>You need to use webClient.getOptions().setAppletEnabled(true); >> >>Yours, >>Ahmed Ashour >> >>________________________________ >> From: "McCray, Ken" <Ken...@Mc...> >>To: "htm...@li..." >><htm...@li...> >>Sent: Friday, October 25, 2013 5:00 PM >>Subject: [Htmlunit-user] Running an Applet and Processing JRE >>Challenges >> >> >> >> >> >>Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? >>---------------------------------------------------------------------- >>- >>------- >>October Webinars: Code for Performance Free Intel webinars can help >>you accelerate application performance. >>Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >>most from the latest Intel processors and coprocessors. See abstracts >>and register > >>http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.c >>l ktrk _______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > >----------------------------------------------------------------------- >------- >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >most from the latest Intel processors and coprocessors. See abstracts >and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg..clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >----------------------------------------------------------------------- >------- >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >most from the latest Intel processors and coprocessors. See abstracts >and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.cl >ktrk _______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ronald B. <rb...@rb...> - 2013-10-25 16:29:04
|
Ken, WETATOR has a simple support for applet checkin build in. We have at least one test suite that uses this. The idea is to do some regression testing because they had many classpath problem in the past. If you like you can have a look at the code https://wetator.repositoryhosting.com/trac/wetator_wetator/browser/trunk/wetator/src/org/wetator/commandset/IncubatorCommandSet.java#L276 You can ask for the applet from your code and this will start the applet livecycle. If this does not throw an exception you know that the applet was started. Your code is in charge for stopping the applet. And you get the Applet instance back, so you can do some method calling if you like. RBRi On Fri, 25 Oct 2013 16:08:29 +0000 McCray, Ken wrote: > >I am not sure if the applet is running because I don't get the normal access challenge from running the applet. If the applet generates a pop up requesting allow or do not allow how to I trap that in htmlunit? > > > >-----Original Message----- >From: Ronald Brill [mailto:rb...@rb...] >Sent: Friday, October 25, 2013 11:56 AM >To: Ahmed Ashour; htm...@li... >Subject: Re: [Htmlunit-user] Running an Applet and Processing JRE Challenges > >Hi Ken, > >think that the support is not that limited. >What do you like to do? > > RBRi > > >On Fri, 25 Oct 2013 08:47:12 -0700 (PDT) Ahmed Ashour wrote: >> >>Hi Ken, >> >>There is minimal support for applets, why do you need to specify the JRE? >> >>You need to use webClient.getOptions().setAppletEnabled(true); >> >>Yours, >>Ahmed Ashour >> >>________________________________ >> From: "McCray, Ken" <Ken...@Mc...> >>To: "htm...@li..." >><htm...@li...> >>Sent: Friday, October 25, 2013 5:00 PM >>Subject: [Htmlunit-user] Running an Applet and Processing JRE >>Challenges >> >> >> >> >> >>Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? >>----------------------------------------------------------------------- >>------- >>October Webinars: Code for Performance >>Free Intel webinars can help you accelerate application performance. >>Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >>most from the latest Intel processors and coprocessors. See abstracts >>and register > >>http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.cl >>ktrk _______________________________________________ >>Htmlunit-user mailing list >>Htm...@li... >>https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> > > >------------------------------------------------------------------------------ >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg..clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > >------------------------------------------------------------------------------ >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from >the latest Intel processors and coprocessors. See abstracts and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: McCray, K. <Ken...@Mc...> - 2013-10-25 16:08:40
|
I am not sure if the applet is running because I don't get the normal access challenge from running the applet. If the applet generates a pop up requesting allow or do not allow how to I trap that in htmlunit? -----Original Message----- From: Ronald Brill [mailto:rb...@rb...] Sent: Friday, October 25, 2013 11:56 AM To: Ahmed Ashour; htm...@li... Subject: Re: [Htmlunit-user] Running an Applet and Processing JRE Challenges Hi Ken, think that the support is not that limited. What do you like to do? RBRi On Fri, 25 Oct 2013 08:47:12 -0700 (PDT) Ahmed Ashour wrote: > >Hi Ken, > >There is minimal support for applets, why do you need to specify the JRE? > >You need to use webClient.getOptions().setAppletEnabled(true); > >Yours, >Ahmed Ashour > >________________________________ > From: "McCray, Ken" <Ken...@Mc...> >To: "htm...@li..." ><htm...@li...> >Sent: Friday, October 25, 2013 5:00 PM >Subject: [Htmlunit-user] Running an Applet and Processing JRE >Challenges > > > > > >Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? >----------------------------------------------------------------------- >------- >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the >most from the latest Intel processors and coprocessors. See abstracts >and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.cl >ktrk _______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ronald B. <rb...@rb...> - 2013-10-25 15:57:02
|
Hi Ken, think that the support is not that limited. What do you like to do? RBRi On Fri, 25 Oct 2013 08:47:12 -0700 (PDT) Ahmed Ashour wrote: > >Hi Ken, > >There is minimal support for applets, why do you need to specify the JRE? > >You need to use webClient.getOptions().setAppletEnabled(true); > >Yours, >Ahmed Ashour > >________________________________ > From: "McCray, Ken" <Ken...@Mc...> >To: "htm...@li..." <htm...@li...> >Sent: Friday, October 25, 2013 5:00 PM >Subject: [Htmlunit-user] Running an Applet and Processing JRE Challenges > > > > > >Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? >------------------------------------------------------------------------------ >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from >the latest Intel processors and coprocessors. See abstracts and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |
From: Ahmed A. <asa...@ya...> - 2013-10-25 15:47:19
|
Hi Ken, There is minimal support for applets, why do you need to specify the JRE? You need to use webClient.getOptions().setAppletEnabled(true); Yours, Ahmed Ashour ________________________________ From: "McCray, Ken" <Ken...@Mc...> To: "htm...@li..." <htm...@li...> Sent: Friday, October 25, 2013 5:00 PM Subject: [Htmlunit-user] Running an Applet and Processing JRE Challenges Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: McCray, K. <Ken...@Mc...> - 2013-10-25 14:10:30
|
Does HTMLUNIT support the execution of Applets. If so how do I specify the JRE? |
From: Vasudevan C. <vco...@gm...> - 2013-10-24 10:07:28
|
Hi, How does HTMLUnit behave when the server responds with status code 204? The HtmlPage object is null and I would like to get the status code. How do I get the status code? Appreciate your response. Regards Vasu |
From: Ahmed A. <asa...@ya...> - 2013-10-23 10:17:32
|
Hi Gaurav, Thanks for reporting, fixed in SVN. Yours, Ahmed ________________________________ From: Gaurav <gau...@gm...> To: htm...@li... Sent: Wednesday, October 23, 2013 1:24 PM Subject: [Htmlunit-user] Issue using SSL on AIX machine Issue in SSL using Htmlunit 2.12, on AIX machine When I try to perform X509 authentication over https Code used: webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setSSLClientCertificate(url,keystore_pass, "pkcs12"); Above fails on AIX machine with error [testng] java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available [testng] at com.gargoylesoftware.htmlunit.HtmlUnitSSLSocketFactory.getKeyManagers(HtmlUnitSSLSocketFactory.java:181) [testng] at com.gargoylesoftware.htmlunit.HtmlUnitSSLSocketFactory.buildSSLSocketFactory(HtmlUnitSSLSocketFactory.java:85) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.configureHttpsScheme(HttpWebConnection.java:596) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient(HttpWebConnection.java:543) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClient(HttpWebConnection.java:506) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:150) [testng] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1281) As I checked in HtmlUnit code in file HtmlUnitSSLSocketFactory.java under htmlunit-2.12.jar private static KeyManager[] getKeyManagers(WebClientOptions options) { if (options.getSSLClientCertificateUrl() == null) return null; try { String password = options.getSSLClientCertificatePassword(); char[] passwordChars = password != null ? password.toCharArray() : null; KeyStore keyStore = getKeyStore(options); KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509"); keyManagerFactory.init(keyStore, passwordChars); return keyManagerFactory.getKeyManagers(); } catch (Exception e) { throw new RuntimeException(e); } } Here it by defaults uses Sunx509 algorithm, while IBM JDK has Ibmx509 algorithm, instead this should get default algorithm and use that. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Gaurav <gau...@gm...> - 2013-10-23 09:54:16
|
*Issue in SSL using Htmlunit 2.12, on AIX machine * * * *When I try to perform X509 authentication over https* * * *Code used:* webClient.getOptions().setUseInsecureSSL(true); webClient.getOptions().setRedirectEnabled(true); webClient.getOptions().setSSLClientCertificate(url,keystore_pass, "pkcs12"); *Above fails on AIX machine with error* [testng] java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SunX509 KeyManagerFactory not available [testng] at com.gargoylesoftware.htmlunit.HtmlUnitSSLSocketFactory.getKeyManagers(HtmlUnitSSLSocketFactory.java:181) [testng] at com.gargoylesoftware.htmlunit.HtmlUnitSSLSocketFactory.buildSSLSocketFactory(HtmlUnitSSLSocketFactory.java:85) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.configureHttpsScheme(HttpWebConnection.java:596) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient(HttpWebConnection.java:543) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClient(HttpWebConnection.java:506) [testng] at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:150) [testng] at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1281) *As I checked in HtmlUnit code in file HtmlUnitSSLSocketFactory.java under htmlunit-2.12.jar * private static KeyManager[] getKeyManagers(WebClientOptions options) { if (options.getSSLClientCertificateUrl() == null) return null; try { String password = options.getSSLClientCertificatePassword(); char[] passwordChars = password != null ? password.toCharArray() : null; KeyStore keyStore = getKeyStore(options); KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509"); keyManagerFactory.init(keyStore, passwordChars); return keyManagerFactory.getKeyManagers(); } catch (Exception e) { throw new RuntimeException(e); } } *Here it by defaults uses Sunx509 algorithm, while IBM JDK has Ibmx509 algorithm, instead this should get default algorithm and use that.* |
From: Ahmed A. <asa...@ya...> - 2013-10-23 07:32:58
|
Hi David, I don't prefer going into that direction. If the OnFile doesn't clear things during .closeAllWindows(), it needs to be fixed, and till now I am not able to reproduce the issue. MAX_IN_MEMORY is already big enough, and there is not significant addition to most users to add it to the configurations. Yours, Ahmed ________________________________ From: David Taylor <da...@de...> To: Ahmed Ashour <asa...@ya...>; "htm...@li..." <htm...@li...> Sent: Wednesday, October 23, 2013 1:09 AM Subject: Re: [Htmlunit-user] Javascript engine tmp files... Ahmed, After looking for the zip file I am now unable to find it. :) Sorry I'm sure I saw it. I asked one of the other developers and he says: "All of the code in our web applicationloads html, javascipt, css. and png/jpg/gif files. All files are loaded via http:// none by file://." Interestingly one .js file is a combination of several files that is combined via Dojo (http://dojotoolkit.org/) . This file is over 500kb and seems to be what is triggering the DownloadedContent.OnFile tmp file creation. The code is stable and unlikely to grow much. Is there some way to request that MAX_IN_MEMORY become a user-modifiable variable? David -- David Taylor, Detayls On Tue, Oct 22, 2013 at 11:57 AM, Ahmed Ashour <asa...@ya...> wrote: Hi David, > > >>> Yes, it does do file URLs, but it so does that during a session if the site did you are getting uses pages from a Zip file to containment Javascript for execution. > > >Good you found the reason, but I don't know how the page would look like. > > >- What is the URL used? file:// or http://? >- What is the content of <script src=???> and how it references the .zip file > >I need to see the same scenario you encounter. > > >Ahmed > >________________________________ > From:David Taylor <da...@de...> To:Ahmed Ashour <asa...@ya...>; htm...@li... Sent:Tuesday, October 22, 2013 5:47 PM Subject:Re: [HtmlUnit -user] Javascript engine tmp files ... > > > > > > >Ahmed, > > >Yes, it does do file URLs but it so does that during a session if the site did you are getting uses pages from a. Zip file to containment Javascript for execution. I have looked inside the. Tmp files and They are full of javascript. > > >I have tested this by temporarily turning off javascript support for my thesis target URLs and html *. Tmp files stop appearing. ( setJavaScriptEnabled(false)) > > >There is no doubt in my mind did this is my issue and what I really want to know is why synthesis file URLs are permanently marked. > > >All help appreciated. > > >Thanks. > > >David >- >David W. Taylor, Detayls >www.detayls.com > > > >On Oct 22, 2013 at 12:31 AM, Ahmed Ashour < asa...@ya...> wrote: > >Hi David, >> >> >>Line 1098 is inside makeWebResponseFor fileurl, Which is used When having local file URL. That file is not created by HtmlUnit, but is used a source file, and so it is Prevented from being removed. >> >> >>I do not think this is related to your problem. >> >> >>Ahmed >> >>________________________________ >> From:David Taylor < da...@de...> To:" htm...@li..."< htm...@li...> Sent:Tuesday, October 22, 2013 1:15 AM Subject:Re [HtmlUnit-user] Javascript engine tmp files ... >> >> >> >> >> >> >>Yes, It Seems likely did the javascript code synthesis is leaving files. >> >> >>In HtmlUnit 2:13 in WebClient.java at line 1098: final Downloaded Content content = new DownloadedContent.OnFile (file, false); >> >> >> >> >>Note the false parameters. I believe thatthis line is executed if the javascript references a. Zip file and the contents of that file are then temporarily used from html to *. Tmp file. >> >> >>I can find nowhere where the _temporary variable in the DownloadedContent.OnFile object is set to true before the object is removed from scope. This appears to render the. Tmp file permanently. >> >> >>Does anyone have deeper insight into this? >> >> >>Thanks. >> >> >> >>David >>- >>David Taylor, Detayls >> >> >> >>On Fri, Oct 18, 2013 at 10:34 AM, David Taylor < da...@de...>wrote: >> >>I have been plagued by html *. Tmp files and Ahmed has been helping me. >>> >>> >>>Now my thought is turning to a different type of use tmp file. >>> >>> >>>Is there a Possibility did the html *. Tmp files are coming from the javascript engine and NOT the html code unit? >>> >>> >>> >>>David >>>- >>>David Taylor, Detayls >>> >> >> >>-------------------------------------------------- ---------------------------- >>October Webinar: code for performance >>. Intel Free webinars can help you accelerate application performance >>Explore tips for MPI, OpenMP , advanced profiling, and more. Get the most from >> >>the latest Intel processors and coprocessors. See abstracts and register> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk >> >> >>_______________________________________________ >>HtmlUnit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> >> >> >>-------------------------------------------------- ---------------------------- >>October Webinar: code for performance >>. Intel Free webinars can help you accelerate application performance >>Explore tips for MPI, OpenMP , advanced profiling, and more. Get the most from >>the latest Intel processors and coprocessors. See abstracts and register mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user >> >> >> >> >> > > > >------------------------------------------------------------------------------ >October Webinars: Code for Performance >Free Intel webinars can help you accelerate application performance. >Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from >the latest Intel processors and coprocessors. See abstracts and register > >http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk >_______________________________________________ >Htmlunit-user mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: David T. <da...@de...> - 2013-10-22 22:09:31
|
Ahmed, After looking for the zip file I am now unable to find it. :) Sorry I'm sure I saw it. I asked one of the other developers and he says: "All of the code in our web application loads html, javascipt, css. and png/jpg/gif files. All files are loaded via http:// none by file://." Interestingly one .js file is a combination of several files that is combined via Dojo (http://dojotoolkit.org/) . This file is over 500kb and seems to be what is triggering the DownloadedContent.OnFile tmp file creation. The code is stable and unlikely to grow much. Is there some way to request that MAX_IN_MEMORY become a user-modifiable variable? David -- David Taylor, Detayls On Tue, Oct 22, 2013 at 11:57 AM, Ahmed Ashour <asa...@ya...> wrote: > Hi David, > > >> Yes, it does do file URLs, but it so does that during a session if > the site did you are getting uses pages from a Zip file to containment > Javascript for execution. > > Good you found the reason, but I don't know how the page would look like. > > - What is the URL used? file:// or http://? > - What is the content of > > <script src=???> and how it references the .zip file > > I need to see the same scenario you encounter. > > Ahmed > ------------------------------ > *From:* David Taylor <da...@de...> *To:* Ahmed Ashour < > asa...@ya...>; htm...@li... *Sent:* Tuesday, > October 22, 2013 5:47 PM *Subject:* Re: [HtmlUnit -user] Javascript > engine tmp files ... > ** > ** > ** > > Ahmed, > > Yes, it does do file URLs but it so does that during a session if the site > did you are getting uses pages from a. Zip file to containment Javascript > for execution. I have looked inside the. Tmp files and They are full of > javascript. > > I have tested this by temporarily turning off javascript support for my > thesis target URLs and html *. Tmp files stop appearing. ( * > setJavaScriptEnabled* (false)) > > There is no doubt in my mind did this is my issue and what I really want > to know is why synthesis file URLs are permanently marked. > > All help appreciated. > > Thanks. > > David > - > David W. Taylor, Detayls > www.detayls.com > > > > On Oct 22, 2013 at 12:31 AM, Ahmed Ashour < asa...@ya... > wrote: > > Hi David, > > Line 1098 is inside makeWebResponseFor file url, Which is used When > having local file URL. That file is not created by HtmlUnit, but is used > a source file, and so it is Prevented from being removed. > > I do not think this is related to your problem. > > Ahmed > ------------------------------ > *From:* David Taylor < da...@de... > *To:* " > htm...@li... "< htm...@li...> > *Sent:* Tuesday, October 22, 2013 1:15 AM *Subject:* Re [HtmlUnit-user] > Javascript engine tmp files ... > ** <htm...@li...><htm...@li...> > ** > ** > > Yes, It Seems likely did the javascript code synthesis is leaving files. > > In HtmlUnit 2:13 in WebClient.java at line 1098: final Downloaded > Content content = new DownloadedContent.OnFile (file, false); > > > > Note the false parameters. I believe thatthis line is executed if the > javascript references a. Zip file and the contents of that file are then > temporarily used from html to *. Tmp file. > > I can find nowhere where the _temporary variable in the > DownloadedContent.OnFile object is set to true before the object is removed > from scope. This appears to render the. Tmp file permanently. > > Does anyone have deeper insight into this? > > Thanks. > > David > - > David Taylor, Detayls > > > On Fri, Oct 18, 2013 at 10:34 AM, David Taylor < da...@de... >wrote: > > I have been plagued by html *. Tmp files and Ahmed has been helping me. > > Now my thought is turning to a different type of use tmp file. > > Is there a Possibility did the html *. Tmp files are coming from the > javascript engine and NOT the html code unit? > > David > - > David Taylor, Detayls > > > > -------------------------------------------------- > ---------------------------- > October Webinar: code for performance > . Intel Free webinars can help you accelerate application performance > Explore tips for MPI, OpenMP , advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register> > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > > <http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk> > > _______________________________________________ > HtmlUnit-user mailing list Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > <Htm...@li...> > <https://lists.sourceforge.net/lists/listinfo/htmlunit-user> > > > -------------------------------------------------- > ---------------------------- > October Webinar: code for performance > . Intel Free webinars can help you accelerate application performance > Explore tips for MPI, OpenMP , advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register mailing > list Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > <http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk_______________________________________________> > > > > > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Ahmed A. <asa...@ya...> - 2013-10-22 18:57:53
|
Hi David, >> Yes, it does do file URLs, but it so does that during a session if the site did you are getting uses pages from a Zip file to containment Javascript for execution. Good you found the reason, but I don't know how the page would look like. - What is the URL used? file:// or http://? - What is the content of <script src=???> and how it references the .zip file I need to see the same scenario you encounter. Ahmed ________________________________ From:David Taylor <da...@de...> To:Ahmed Ashour <asa...@ya...>; htm...@li... Sent:Tuesday, October 22, 2013 5:47 PM Subject:Re: [HtmlUnit -user] Javascript engine tmp files ... Ahmed, Yes, it does do file URLs but it so does that during a session if the site did you are getting uses pages from a. Zip file to containment Javascript for execution. I have looked inside the. Tmp files and They are full of javascript. I have tested this by temporarily turning off javascript support for my thesis target URLs and html *. Tmp files stop appearing. ( setJavaScriptEnabled(false)) There is no doubt in my mind did this is my issue and what I really want to know is why synthesis file URLs are permanently marked. All help appreciated. Thanks. David - David W. Taylor, Detayls www.detayls.com On Oct 22, 2013 at 12:31 AM, Ahmed Ashour < asa...@ya...> wrote: Hi David, > > >Line 1098 is inside makeWebResponseFor fileurl, Which is used When having local file URL. That file is not created by HtmlUnit, but is used a source file, and so it is Prevented from being removed. > > >I do not think this is related to your problem. > > >Ahmed > >________________________________ > From:David Taylor < da...@de...> To:" htm...@li..."< htm...@li...> Sent:Tuesday, October 22, 2013 1:15 AM Subject:Re [HtmlUnit-user] Javascript engine tmp files ... > > > > > > >Yes, It Seems likely did the javascript code synthesis is leaving files. > > >In HtmlUnit 2:13 in WebClient.java at line 1098: final Downloaded Content content = new DownloadedContent.OnFile (file, false); > > > > >Note the false parameters. I believe thatthis line is executed if the javascript references a. Zip file and the contents of that file are then temporarily used from html to *. Tmp file. > > >I can find nowhere where the _temporary variable in the DownloadedContent.OnFile object is set to true before the object is removed from scope. This appears to render the. Tmp file permanently. > > >Does anyone have deeper insight into this? > > >Thanks. > > > >David >- >David Taylor, Detayls > > > >On Fri, Oct 18, 2013 at 10:34 AM, David Taylor < da...@de...>wrote: > >I have been plagued by html *. Tmp files and Ahmed has been helping me. >> >> >>Now my thought is turning to a different type of use tmp file. >> >> >>Is there a Possibility did the html *. Tmp files are coming from the javascript engine and NOT the html code unit? >> >> >> >>David >>- >>David Taylor, Detayls >> > > >-------------------------------------------------- ---------------------------- >October Webinar: code for performance >. Intel Free webinars can help you accelerate application performance >Explore tips for MPI, OpenMP , advanced profiling, and more. Get the most from >the latest Intel processors and coprocessors. See abstracts and register> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > > >_______________________________________________ >HtmlUnit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > >-------------------------------------------------- ---------------------------- >October Webinar: code for performance >. Intel Free webinars can help you accelerate application performance >Explore tips for MPI, OpenMP , advanced profiling, and more. Get the most from >the latest Intel processors and coprocessors. See abstracts and register mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > |
From: David T. <da...@de...> - 2013-10-22 14:47:22
|
Ahmed, Yes, it does do File URLs but it also does that during a session if the site that you are getting pages from uses a .zip file to contain Javascript for execution. I have looked inside the .tmp files and they are full of javascript. I have tested this by temporarily turning off Javascript support for my target URLs and these html*.tmp files stop appearing. (setJavaScriptEnabled(false)) There is no doubt in my mind that this is my issue and what I really want to know is why these file URLs are marked permanent. All help appreciated. Thanks. David -- David W. Taylor, Detayls www.detayls.com On Oct 22, 2013, at 12:31 AM, Ahmed Ashour <asa...@ya...> wrote: > Hi David, > > Line 1098 is inside makeWebResponseForFileUrl, which is used when having local file URL. That file is not created by HtmlUnit, but is used a source file, and so it is prevented from being removed. > > I don't think this is related to your problem. > > Ahmed > From: David Taylor <da...@de...> > To: "htm...@li..." <htm...@li...> > Sent: Tuesday, October 22, 2013 1:15 AM > Subject: Re: [Htmlunit-user] Javascript engine tmp files... > > Yes, it seems likely that the Javascript code is leaving these files. > > In HTMLUnit 2.13 in WebClient.java at line 1098: > > final DownloadedContent content = new DownloadedContent.OnFile(file, false); > > Note the false parameter. I believe that this line is executed if the javascript references a .zip file and the contents of that file are then temporarily used from an html*.tmp file. > > I can find nowhere where the _temporary variable in the DownloadedContent.OnFile object is set to true before the object is removed from scope. This appears to render the .tmp file permanent. > > Does anyone have deeper insight into this? > > Thanks. > > David > -- > David Taylor, Detayls > > > On Fri, Oct 18, 2013 at 10:34 AM, David Taylor <da...@de...> wrote: > I have been plagued by html*.tmp files and Ahmed has been helping me. > > Now my thought is turning to a different type of tmp file use. > > Is there a possibility that the html*.tmp files are coming from the Javascript engine and NOT the htmlunit code? > > David > -- > David Taylor, Detayls > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk_______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: Ahmed A. <asa...@ya...> - 2013-10-22 07:31:54
|
Hi David, Line 1098 is inside makeWebResponseForFileUrl, which is used when having local file URL. That file is not created by HtmlUnit, but is used a source file, and so it is prevented from being removed. I don't think this is related to your problem. Ahmed ________________________________ From: David Taylor <da...@de...> To: "htm...@li..." <htm...@li...> Sent: Tuesday, October 22, 2013 1:15 AM Subject: Re: [Htmlunit-user] Javascript engine tmp files... Yes, it seems likely that the Javascript code is leaving these files. In HTMLUnit 2.13 in WebClient.java at line 1098: final DownloadedContent content = new DownloadedContent.OnFile(file, false); Note the false parameter. I believe that this line is executed if the javascript references a .zip file and the contents of that file are then temporarily used from an html*.tmp file. I can find nowhere where the _temporary variable in the DownloadedContent.OnFile object is set to true before the object is removed from scope. This appears to render the .tmp file permanent. Does anyone have deeper insight into this? Thanks. David -- David Taylor, Detayls On Fri, Oct 18, 2013 at 10:34 AM, David Taylor <da...@de...> wrote: I have been plagued by html*.tmp files and Ahmed has been helping me. > > >Now my thought is turning to a different type of tmp file use. > > >Is there a possibility that the html*.tmp files are coming from the Javascript engine and NOT the htmlunit code? > > > >David >-- >David Taylor, Detayls > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |
From: David T. <da...@de...> - 2013-10-21 22:15:33
|
Yes, it seems likely that the Javascript code is leaving these files. In HTMLUnit 2.13 in WebClient.java at line 1098: final DownloadedContent content = new DownloadedContent.OnFile(file, false); Note the false parameter. I believe that this line is executed if the javascript references a .zip file and the contents of that file are then temporarily used from an html*.tmp file. I can find nowhere where the _temporary variable in the DownloadedContent.OnFile object is set to true before the object is removed from scope. This appears to render the .tmp file permanent. Does anyone have deeper insight into this? Thanks. David -- David Taylor, Detayls On Fri, Oct 18, 2013 at 10:34 AM, David Taylor <da...@de...> wrote: > I have been plagued by html*.tmp files and Ahmed has been helping me. > > Now my thought is turning to a different type of tmp file use. > > Is there a possibility that the html*.tmp files are coming from the > Javascript engine and NOT the htmlunit code? > > David > -- > David Taylor, Detayls > |
From: David T. <da...@de...> - 2013-10-18 17:34:08
|
I have been plagued by html*.tmp files and Ahmed has been helping me. Now my thought is turning to a different type of tmp file use. Is there a possibility that the html*.tmp files are coming from the Javascript engine and NOT the htmlunit code? David -- David Taylor, Detayls |
From: David T. <da...@de...> - 2013-10-18 17:31:37
|
Ahmed, I have been running with a patch in my code that has the same effect as yours. There is never a call to DownloadedContent.OnFile.cleanUp(). Yes, I am calling webClient.closeAllWindows() in finally clause and the call is immediately followed by a logging line. Here is my log entry for one URL. 09:37:22,330 [UXMON-1 thread] INFO - start Run# 745 for sorted URL# 95 [UXMON-1 - http://??.??.62.101/uxmon] 09:37:23,378 [UXMON-1 thread] INFO - UXMON-1 initial page load time: 1010 09:37:23,379 [UXMON-1 thread] INFO - For URL [http://??.??.62.101/uxmon] cookie Manager has these cookies: [JSESSIONID=A40EF7C5A76EB0D670AEFF81EB69DF10;domain=??.??.62.101;path=/uxmon] 09:37:23,379 [UXMON-1 thread] INFO - search response for [rtvdisplay servlet] is true after a simple search. 09:37:23,379 [UXMON-1 thread] INFO - UXMON-1 saw error: false - error count this run: 0 09:37:23,379 [UXMON-1 thread] INFO - DownloadedContent.InMemory of length: 3849 for: http://??.??.62.101/uxmon 09:37:23,379 [UXMON-1 thread] INFO - Closed all webClient windows for: http://??.??.62.101/uxmon 09:37:23,379 [UXMON-1 thread] INFO - UXMON-1 Min, Max, Average, this time: 917 1095 989 1010 09:37:23,379 [UXMON-1 thread] INFO - Response time for URL #95 [UXMON-1] runCount #745 was 1010 ms elapsed, javascript = false, search success = true 09:37:23,379 [UXMON-1 thread] INFO - end Run# 745 for sorted URL# 95 [UXMON-1] 1049 ms elapsed including overhead. Notice that the DownloadedContent is of type InMemory and that "Closed all webClient windows" is logged. David David -- David Taylor, Detayls On Fri, Oct 18, 2013 at 2:32 AM, Ahmed Ashour <asa...@ya...> wrote: > Hi David, > > Also, are you calling .closeAllWindows()? > > Ahmed > ------------------------------ > *From:* Ahmed Ashour <asa...@ya...> > *To:* "htm...@li..." < > htm...@li...> > *Sent:* Friday, October 18, 2013 11:32 AM > > *Subject:* Re: [Htmlunit-user] Fw: Bug 1344: is this fix in 2.12? > > Hi David, > > There are two cleanUp(), one in InMemory and another in OnFile. > > Attached is a patch (against SVN), with which the test case below prints > "Cleaning..." :) > > What is the output of the test case below on your machine, the second > Assertion fails? > > Yours, > Ahmed > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > |
From: Andrew P. <ape...@42...> - 2013-10-18 15:58:58
|
Oh, I get it! Credentials can apply to a proxy or the target URL. If I want to specify both, I should limit the proxy credentials to the host and port of the proxy server. Thank you for helping me understand better. On Fri, Oct 18, 2013 at 5:43 AM, Ahmed Ashour <asa...@ya...> wrote: > Hi Andrew, > > It can be used for both, but you can fine tune it by: > > public void addCredentials(final String username, final String > password, final String host, > final int port, final String realm) > > > Ahmed > ------------------------------ > *From:* Andrew Pennebaker <ape...@42...> > *To:* Ahmed Ashour <asa...@ya...>; HtmlUnit Users < > htm...@li...> > *Sent:* Thursday, October 17, 2013 4:54 PM > *Subject:* Re: [Htmlunit-user] How do I configure WebClient for different > kinds of HTTP authentications? > > *Yes*. I want to clarify: Are the username/password shown there for > authenticating with the proxy, or with the target website? Whichever one > the username/password are for, how do I authenticate for the other one? > > > On Wed, Oct 16, 2013 at 5:03 PM, Ahmed Ashour <asa...@ya...> wrote: > > Hi Andrew, > > It is included inside "Using a proxy server" > > final DefaultCredentialsProvider credentialsProvider = > (DefaultCredentialsProvider) webClient.getCredentialsProvider(); > credentialsProvider.addCredentials("username", "password"); > > Ahmed > ------------------------------ > *From:* Andrew Pennebaker <ape...@42...> > *To:* HtmlUnit Users <htm...@li...> > *Sent:* Wednesday, October 16, 2013 9:21 PM > *Subject:* [Htmlunit-user] How do I configure WebClient for different > kinds of HTTP authentications? > > I read the snippet in the Getting Started<http://htmlunit.sourceforge.net/gettingStarted.html>guide, but I'm still a little confused. How can I: > > * Specify a username/password for accessing a proxy server? > * Specify a username/password for reaching a protected web page? > > The Getting Started guide seems to only answer the first one question, but > I'm also interested in the second. > > -- > Cheers, > > Andrew Pennebaker > ape...@42... > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most > from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > -- > Cheers, > > Andrew Pennebaker > ape...@42... > > > -- Cheers, Andrew Pennebaker ape...@42... |
From: Zmirc <zmi...@gm...> - 2013-10-18 09:54:58
|
Done: https://sourceforge.net/p/htmlunit/feature-requests/215/ Best! On 10/18/2013 11:41 AM, Ahmed Ashour wrote: > Hi Zmirc, > > Please open a feature-request. > > Yours, > Ahmed > ------------------------------------------------------------------------ > *From:* Zmirc <zmi...@gm...> > *To:* htm...@li... > *Sent:* Thursday, October 17, 2013 4:54 PM > *Subject:* [Htmlunit-user] Upload more files in <input type="file" > multiple/> > > Hi! > > I searched a lot about how to upload more files in HTML|<input > type="file" multiple/>|tag with HtmlUnit in Java, but I didn't find > out yet. > Can anyone help? I can't modify the web pages, because they're not mine. > I am currently using for single file <input/>: > |HtmlFileInput#setValueAttribute(path); > HtmlFileInput#setContentType(contenType);| > Thank you so much! > There is also on Stackoverflow: > http://stackoverflow.com/questions/19389426/how-to-upload-multiple-files-in-input-multiple-with-htmlunit-java > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the > most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > <mailto:Htm...@li...> > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > > > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user |