David
Fri Feb 04 22:44:07 CST 2005
A 400 error indicates that the application sent an invalid HTTP request to
the server.
If I had to guess, I would say that the SunJVM output stream is probably
using \n as line delimiters for HTTP (invalid according to RFC2616 spec,
though some servers inappropriately accepts them, including IIS5). IIS6
requires \r\n (as spec'd in RFC) for the request, thus returns 400 for such
requests.
The correct thing is to ensure that the client sends properly formatted HTTP
requests regardless of the underlying JVM.
A network sniff of the request/response should show exactly what is "400"
about it. Network Monitor ships with Windows Server 2003 in Add/Remove
Programs so you can easily install it for network diagnosis.
--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ken" <kfleming@rcm1.com> wrote in message
news:c035f181-3268-4309-8af9-fe7bdeafa68f@msnews.microsoft.com...
If I use the MSJVM to run the applet it can POST to IIS6 with no problem
If I switch to using the SunJVM/JRE the POST fails with a 400 error
The SunJVM can post to IIS5 with no problem.
So... what is it about sunjvm and/or IIS6 that is causing the problem?
Posted via DevelopmentNow Groups
www.developmentnow.com/g
www.developmentnow.com