-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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? Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJU3NgYAAoJEBzwKT+lPKRYpnQP/13Y6lIyahy8Dfq7g1u72OXL KJ9Ys0XoBxvwiIQ7LLqZvKpmrKll5hD1dQd4bTwQfshDqOsQITjIKtdY8Y29M9tP hpZ8WCkjmjcYVAIPH1Kj2M54cOJukyXJi6LNgz4QPY82LA/T9Us/ltYe/GxmUWol 7dfkSZuai5h+LBj3Yxn3Fk5A8YLnpG0OHf/qrlt3KqWddk/47oOEzKwiaPfJx6qL NURiBTTlhfveXiVa4EJ0zitZjamvTlxpq0t7VAW5QZFbalOZDVSCFEBS7bRwBsUv lqGXOxY4U0q+M5vjwTuO6IhKm6HfYJe6hEI5Gy5PdanZR15UmWcidftybe0SQwNi fYlV3FPrja6Qv/JNb72b4F79Vgl2cNselar3Q9LQ66mTEtJCL+t6teGH1Vi6rax6 O28nwUjZq40CuwDr/DyztIRDnuhc48z4hz23YyjUhfh0y4qMhaeO4DCvX9EQLOvF 8qerVT8js+zd62J8ie/Grg7jFjO1rbtcmrNONiet7GA3Hko9Fl40vTu3OjAJYxjX cicCZQwkCd2Mc3sLfqfxpgFpOlJYyyThB+guttvvjE1R2ivm8O23DNX8UKbK1lXE ja/N0y5gC3QpbFkg//wekukA/sz/AZ5T97KeCZ9Dilljx02yDr83VflDXXAnF6Lj IifLIFgdyWHSqSCEWa27 =Ovez -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org