How the client sends a request has NO bearing on how the response is sent.
i.e. with a client and server that is HTTP/1.1, there are four possible
combinations of content-length/chunked on request/response, and all are
valid.
IIS does not implement chunked encoding on response at all. It is up to the
request handler to chunk responses, if it wants to.
So, the answer to your question is:
1. IIS always sends back a non-chunked response. It's a ISAPI/CGI request
handler that sends back a chunked response
2. See #1
It appears that the URL sending the chunked response on the server is doing
it incorrectly.
To never see a chunked response from IIS, you either:
1. Send a HTTP/1.0 request
2. Make sure the ISAPI/CGI request handler on IIS does not send a chunked
response.
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Wazza" <wazzaljohn DeleteThis @yahoo.co.uk> wrote in message
news:390fa3aa.0312022037.4d00187f@posting.google.com...
I have been searching / reading many different messages regarding this
and haven't seen anyone with this situation / question:
- JAVA 1.4 client sends a well-formed xml request to an IIS v5.0
server. This is HTTP v1.1 and normal text sent with the
Content-Length: xxxx header (ie its not chunked).
- Server accepts and responds with small static xml message. A snoop
of this shows that its sending the message as Transfer-Encoded:
chunked.
Questions to here are:
1. How do you force IIS v5.0 to always send the reply as NOT chunked?
(I understand this is HTTP 1.1 compliant, but I'm interested to
determine if its possible to force ISS not to send this as chunked.
2. Does IIS have a default of either chunked or not (assuming HTTP
1.1)? What is the normal response?
The only other issue is that a snoop of the reply shows that IIS is
not sending the last zero-length chunk - its missing! This results in
an IOException in the JAVA code as its looking for it as part of
reading chunk messages for HTTP1.1. Does anyone know if this is a bug
in IIS or have experienced/heard of it before?
Thanks in advance.
Wazza
>> Stay informed about: Forcing IIS v5.0 to not send a HTTP v1.1 reply as chunked