hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Invalid response tests
Date Tue, 12 Oct 2004 12:21:55 GMT
Ah, I see.  Thanks for the pointer.

Mike

On Oct 12, 2004, at 5:44 AM, Oleg Kalnichevski wrote:

> On Tue, 2004-10-12 at 04:04, Michael Becke wrote:
>> Hello All,
>>
>> I've been starting to refactor some of the webapp test and have come
>> upon a bit of a problem.  I'm not terribly familiar with the
>> SimpleHttpServer setup so perhaps there is "simple" solution that is
>> eluding me.  The problem is that sending invalid responses can be  
>> quite
>> difficult.  Specifically I'm trying to send a response with content  
>> but
>> no content length.  Is there an easy way to do this?
>>
>> Mike
>>
>
> Mike,
>
> HttpRequestHandler provides direct access to  
> SimpleHttpServerConnection,
> which should be sufficient to simulate pretty much any type of  
> malformed
> responses:
>
> http://jakarta.apache.org/commons/httpclient/3.0/xref-test/org/apache/ 
> commons/httpclient/server/HttpRequestHandler.html
>
> You may want to take a look at TestBadContentLength as an example of
> using HttpRequestHandler
>
> http://jakarta.apache.org/commons/httpclient/3.0/xref-test/org/apache/ 
> commons/httpclient/TestBadContentLength.html
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:  
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:  
> commons-httpclient-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message