Jon Stevens wrote:
> on 12/26/2000 10:57 AM, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>
> > NOTE: The
> > HttpURLConnection class does not handle this correctly, so the test client
> > now has the option to use a low-level socket connection instead of
> > HttpURLConnection on each test.
>
> Please note, HttpURLConnection doesn't handle MANY things correctly. I
> suggest not using it at all.
>
That is true ... however, many real world applications *do* use
HttpURLConnection to talk to Tomcat-based servers, so we need to test using it
where possible, if for no other reason than the need to stay compatible with it
(as was not the case for Tomcat 4.0 up through milestone 3 or so).
The actual unit test framework is set up so you can run it either way -- by
default it uses HttpURLConnection where possible, but by setting
"-Dprotocol=HTTP/1.0" on the command line it runs the same test suite using
native socket connects.
>
> -jon
Craig