Hi, I am using htmlunit+httpclient to test an embedded web application. Unfortunately there is a large set of requests for which this embedded webserver does not respond with an HTTP header, but instead splats the body without a header. The httpclient rightly throws a protocol exception out on the malformed response. (Firefox and IE will still render the pages without the HTTP response header, so it "works" for the user case. I can't change the embedded web server code.)
I was wondering if there is an easy way to configure httpclient to do best effort on the response and assume that the response is OK so that the response body can be processed as a valid HTML page. Thanks! Jeremy Mayhew ----------------------------------------- Notice: This e-mail is intended solely for use of the individual or entity to which it is addressed and may contain information that is proprietary, privileged and exempt from disclosure under applicable law. If the reader is not the intended recipient or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. This communication may also contain data subject to U.S. export laws. If so, that data subject to the International Traffic in Arms Regulation cannot be disseminated, distributed or copied to foreign nationals, residing in the U.S. or abroad, absent the express prior approval of the U.S. Department of State. If you have received this communication in error, please notify the sender by reply e-mail and destroy the e-mail message and any physical copies made of the communication. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
