On Mon, 2008-12-22 at 12:03 -0500, Pascal Rapicault wrote: > Hi, > > I would like to know if you have an infrastructure simulating servers > with bogus behaviors (returning bogus error codes, servers closing the > connection in a middle of a transfer without error, etc.) when you are > testing the client? > > Thx > > PaScaL > >
Hi Pascal We use exactly the same set of low level components HttpClient 4.0 is based on to build test HTTP servers that can be used simulate all sorts of protocol deviations and violations. http://hc.apache.org/httpcomponents-core/index.html http://hc.apache.org/httpcomponents-core/examples.html These are test servers we are using internally to test HttpCore / HttpClient code: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/test/java/org/apache/http/mockup/ http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-nio/src/test/java/org/apache/http/mockup/ http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/test/java/org/apache/http/localserver/ Please let me know if you need any additional details about testing a specific HTTP protocol aspect. Oleg > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
