只是想知道是否有人知道如何确定 HTTP PUT 请求何时完成。例如:
HttpClient http = new DefaultHttpClient();
HttpPut putmethod = new HttpPut("http://abc.com/SETTINGS.TXT");
putmethod.setEntity(new StringEntity(data));
HttpResponse response = http.execute(putmethod);
如何判断文件何时完全传输/写入。我需要监控 HttpResponse 吗?如果是这样,我在寻找什么?
谢谢