Re: httpunit support for struts-based application.
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <652366DEEF97A3438EC2F4669BD66BA58A7B0C@msgswbmnmsp31.wellsfargo.com> |
Try
WebConversation conversation = new WebConversation();
URL serverUrl = new URL("http://www.<domain>.net/
<http://www.<domain>.net/photo_album.do> ");
WebRequest request = new GetMethodWebRequest( serverUrl,
"photo_album.do" );
WebResponse response = conversation.getResponse( request );
System.out.println(response.getContentLength());
or
WebConversation conversation = new WebConversation();
WebRequest request = new
GetMethodWebRequest("http://www.<domain>.net/photo_album.do");
WebResponse response = conversation.getResponse( request );
System.out.println(response.getContentLength());
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Jungwhan Kim
Sent: Thursday, July 27, 2006 1:24 AM
To: [email protected]
Subject: [Httpunit-develop] httpunit support for struts-based
application.
I am just wondering if httpunit fully supports making requests
to the struts-based application and getting response from it.
i have a simple code like this, but it keeps throwing an
exception saying "No routed host" or something.
here is my code.
WebConversation conversation = new WebConversation();
URL serverUrl = new
URL("http://www.<domain>.net/photo_album.do");
WebRequest request = new GetMethodWebRequest( serverUrl, ""
);
WebResponse response = conversation.getResponse( request );
System.out.println(response.getContentLength());
please help... Thanks.
_____
With MSN Spaces email straight to your blog. Upload jokes,
photos and more. It's free! It's free!
<http://clk.atdmt.com/MSN/go/msnnksac0030000001msn/direct/01/?href=http:
//www.imagine-msn.com/spaces>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop