On Wednesday, February 27, 2013 5:21:29 PM UTC-8, Kyle Lemons wrote:
Are you sending Expect: 100-continue? I don't think the library supports this, but if it did, it would need to do the right thing when you RoundTrip with a Request whose header is expecting a continue; I don't think you can do it yourself at that level of the API.
No, I'm not sending Expect: 100-continue. The server sends 100 Continue in response to a POST whenever the client supports HTTP 1.1. This is a SHOULD NOT (but not a MUST NOT) in the RFC.
RFC 2616, section 8.2.3:
An origin server SHOULD NOT send a 100 (Continue) response if
the request message does not include an Expect request-header
field with the "100-continue" expectation, and MUST NOT send a
100 (Continue) response if such a request comes from an HTTP/1.0
(or earlier) client. There is an exception to this rule: for
compatibility with RFC 2068, a server MAY send a 100 (Continue)
status in response to an HTTP/1.1 PUT or POST request that does
not include an Expect request-header field with the "100-
continue" expectation. This exception, the purpose of which is
to minimize any client processing delays associated with an
undeclared wait for 100 (Continue) status, applies only to
HTTP/1.1 requests, and not to requests with any other HTTP-
version value.