Re: post with authentication using inputstream
"Wolfgang Fahl" <[email protected]> Fri, 21 Aug 2009 11:46:57 +0200
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Organization | BITPlan GmbH |
| Message-ID | <[email protected]> |
Dear Matthew, thank you - I'm happy that the FAQ and recent postings seem to have some effect. Eclipse workspace patches on the latest trunk work like a charm so your path is now in the subversion repository at: http://httpunit.svn.sourceforge.net/viewvc/httpunit?view=rev&revision=1049 796 test cases are working now ... Let's go for 800 now. Yourss Wolfgang > > I wrote this patch to solve an issue I found with doing a POST requiring > authentication using an InputStream for the request body. On the initial > POST the InputStream is consumed and the subsequent POST with auth > headers has an empty body. > > One workaround was to manually encode the auth header and set it on > every request but I could not find a way to send it on the initial > request using setAuthentication. > > The only side effect this patch has is it doesn't call close() on the > InputStream after writing it. I couldn't find a good way to do this, and > maybe the InputStream should not be closed anyway since it is created > outside of httpunit? > > Matthew Boedicker > BITPlan - smart solutions Pater-Delp-Str. 1, D-47877 Willich Schiefbahn Tel. +49 2154 811-480, Fax +49 2154 811-481 Web: http://www.bitplan.de bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, Geschäftsführer: Wolfgang Fahl ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop