tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [5.0] Tester
Date Fri, 18 Jul 2003 16:24:45 GMT


On Fri, 18 Jul 2003, Remy Maucherat wrote:

> Date: Fri, 18 Jul 2003 11:30:35 +0200
> From: Remy Maucherat <remm@apache.org>
> Reply-To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> Subject: [5.0] Tester
>
> I have put the tester back in activity for TC 5 (and it caught the
> failure for error pages), but unfortunately there are a few limitations
> caused by the HTTP client used (for example, if the status is 500, you
> can't read the content). It would be a good idea IMO to switch to
> commons-httpclient (which I'll do, but it's not a very high priority).
>

Switching is fine if you want, but the existing tester does (or at least
it did) have a mode where it uses a low-level socket instead of
HttpURLConnection, and therefore doesn't give you the useless garbage on a
500.  The trick is to set the "protocol" property to "HTTP/1.0" instead of
an empty string.

> Comments ?
>
> Remy
>

Craig

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


Mime
View raw message