I use apache httpdefault client and execute post function as below
HttpResponse imToken = httpClient.execute(httpPostIM);
the response obtained is
HTTP/1.1 100 Continue
Connection: keep-alive
followed by:
HTTP/1.1 200 OK
Date: Tue, 30 Aug 2011 19:11:35 GMT
How do we handle this from client side ??
Here’s the definition of response 100 from w3 and here’s a good sample of what the response looks like. To quote:
So if your client has already sent the entire request then it should just wait the server out until it gives a
200or other “final” response.According to the Apache
HttpClientcode, you don’t have to do anything because the client ignores all1XXresponse codes and continues to look for a final response. This is fromcommons-httpclient-3.1in the classHttpMethodBase:If you are not seeing this behaviour then maybe you need to increase your client timeout? Maybe it isn’t waiting long enough?