HttpUnitOptions.setScriptingEnabled(true) is not working?

Alex <[email protected]>
Newsgroups gmane.comp.web.httpunit.devel
Message-ID <[email protected]>
Hi,

I am desperate to get this to work. Hopefully somebody knows what's wrong.
Need to access webpage and get its raw source code. Site requires javascript
being enabled.

Below is sample site which shows me that javascript is disabled

 

WebConversation wc = new WebConversation();

ClientProperties.getDefaultProperties().setUserAgent("Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)");

HttpUnitOptions.setScriptingEnabled(true); 

WebRequest request = new
GetMethodWebRequest("http://www.dicentral.com/html/7support/browsercheckproc
ess.asp");

WebResponse response = wc.getResponse( request );

InputStream in = response.getInputStream();

 

  InputStreamReader inR = new InputStreamReader( in ); 

   BufferedReader buf = new BufferedReader( inR );

 

   while ( ( line = buf.readLine() ) != null ) 

   {

   System.out.println(line);        

   } //end of while

 

 

 


Browser

Failed

Please download Microsoft Internet <http://www.microsoft.com/windows/ie>
Explorer 6.0 or later!


JavaScript


Failed 


JavaScript is disabled. Please change your browser settings to allow
JavaScript! 


 

 

 


ActiveX

Passed

ActiveX Controls are supported.


Cookies

Passed

Cookies are enabled.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.