2015-02-12 19:43 GMT+03:00 Christopher Schultz <ch...@christopherschultz.net>: > > All, > > I've been trying to find some information online about how to do this, > and maybe I'm just being bad search terms. > > I've not yet played-around with any code for this, but I'm interested > in observing the server's response to an Expect: 100-continue header > when a request has a body (e.g. PUT, POST, etc.). > > This is from an HTTP client's perspective, and I've got code that > already uses HttpURLConnection to open a connection and stream a body > if requested. Before streaming the body, I'd like my code to take a > look at the server's response and maybe make some decision based upon > that. For instance, if the server replies with "417 Expectation > Failed" then I'd like to maybe throw some kind of exception, or maybe > .. I dunno, compress the request to see if the body is small enough to > re-try. > > Anyhow, I don't see anything in the API that directly supports this, > and I haven't found anything online about how to do this in > HttpURLConnection other than the obvious setting of the HTTP header. > Is this something that HttpURLConnection does not expose to the > programmer? Does it simply handle the situation on its own? >
See the following recent BZ issue for a link https://issues.apache.org/bugzilla/show_bug.cgi?id=57530 Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org