You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Rob Owen <Ro...@sas.com> on 2003/01/13 18:30:50 UTC

isHttp11 and HTTP/1.0 servers

The boolean variable http11 is set on a method by method basis. For PutMethod, decisions (eg. Expect: 100-continue request header) are made prior to determining the value for Http11 (chicken and egg problem) and so the default (true) is used to produce the request. An HTTP/1.0 server hangs waiting for the extra data on the PUT method body. 

For applications that are using HttpClient (ie. they do not manipulate the HTTP methods directly and cannot be expected to set the value of Http11 for each method instance), shouldn't http11 have HttpClient scope ? This would allow an interaction (eg. OPTIONS) to set http11 and all methods thereafter would use this setting?
  
------
Rob Owen
SAS Institute Inc.
email: Rob.Owen@sas.com