How to wait for Expect 100-continue response in Java using HttpURLConnection
I am stuck using HttpURLConnection to make a PUT http request to a web-server. I have some code that will make a PUT request just fine, and I can trivially include the 'Expect 100-continue Request Property' in the headers however try as I might I can't seem to make the function wait for the '100 Continue' response from the server before sending the actual http payload. I get the following (from Wireshark) PUT /post/ HTTP/1.1 User-Agent: curl/7.35.0 Accept: */* Content-Type: application/x-www-form-urlencoded Expect: 100-continue Host: somerandomdomain.info Connection: keep-alive Content-Length: