您好: My page index:(这是我的主页)
<html> <head> <title>Welcome 888crown</title> <meta http-equiv="Content-Type" content="text/html; charset=big5"> </head> <frameset rows="*,0" frameborder="NO" border="0" framespacing="0"> <frame name="SI2_mem_index" src="app/member/"> <frame name="SI2_func" scrolling="NO" noresize src="./ok.html"> <noscript><frame src=*></noscript> </frameset> <noframes> <body bgcolor="#FFFFFF" text="#000000"> </body> </noframes> </html>
Following is my code for submiting:
WebResponse summary = wc.getFrameContents("SI2_mem_index"); WebForm form = summary.getFormWithName("loginForm"); HttpUnitOptions.setScriptingEnabled(true); form.setParameter("username", "aaa"); form.setParameter("passwd", "bbb"); WebResponse response1 = form.submit(); System.out.println("\n----response1-----"+response1.getText());
----response1----- <script>top.SI2_mem_index.location = 'http://www.s1188.com/app/member/chk_rule.php? mtype=3&uid=358b2269m1a69e6l7bed&langx=zh-tw';</script>
I need'nt the javascript,I need get the data of <http://http://www.s1188.com/app/member/chk_rule.php? mtype=3&uid=358b2269m1a69e6l7bed&langx=zh-tw'>
How can I access the data after location <'http://www.s1188.com/app/member/chk_rule.php? mtype=3&uid=358b2269m1a69e6l7bed&langx=zh-tw'>.
Log in to post a comment.
您好:
My page index:(这是我的主页)
<html>
<head>
<title>Welcome 888crown</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<frameset rows="*,0" frameborder="NO" border="0" framespacing="0">
<frame name="SI2_mem_index" src="app/member/">
<frame name="SI2_func" scrolling="NO" noresize src="./ok.html">
<noscript><frame src=*></noscript>
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
Following is my code for submiting:
WebResponse summary = wc.getFrameContents("SI2_mem_index");
WebForm form = summary.getFormWithName("loginForm");
HttpUnitOptions.setScriptingEnabled(true);
form.setParameter("username", "aaa");
form.setParameter("passwd", "bbb");
WebResponse response1 = form.submit();
System.out.println("\n----response1-----"+response1.getText());
----response1-----
<script>top.SI2_mem_index.location = 'http://www.s1188.com/app/member/chk_rule.php? mtype=3&uid=358b2269m1a69e6l7bed&langx=zh-tw';</script>
I need'nt the javascript,I need get the data of <http://http://www.s1188.com/app/member/chk_rule.php? mtype=3&uid=358b2269m1a69e6l7bed&langx=zh-tw'>
How can I access the data after location <'http://www.s1188.com/app/member/chk_rule.php? mtype=3&uid=358b2269m1a69e6l7bed&langx=zh-tw'>.