Response entity body in exceptions
John Hawkins <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <OFCA4FA0FF.035A8F50-ON802572B9.005F14AA-802572B9.005FA2AF@uk.ibm.com> |
hi Folks, I'm new around here - nice to meet you ! I'm catching the HTTPException and it appears that I can't get hold of the message body to check it's correct in the case of 400 errors. The HTTP spec states "Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. " SO, is it possible that you've already thought of this? OR, is someone working on it already? OR can I contribute it? There are two ways to do this either a) read in the message body and put it in the HTTPException OR b) just put the originating response into the HTTPException and let the user do it. Judging by the rest of the code I'm guessing you folks prefer a)? cheers, John. Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU ------------------------------------------------------------------------- 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