I am using Apache DefaultHttpClient with HttpPut for file upload using REST API. It is very slow while running from windows, it sends 240 kb/seconds . But it sends 950 kb/seconds when i run the same file from MAC
I don't have any explicit conditions for windows and Mac OS.
Can any one help me to resolve this issue.
My Code:
HttpPut putRequest = new HttpPut("http://my.localhost.com:8888");
FileEntity reqEntity = new FileEntity("c:/test/test.zip","text/plain");
putRequest.setEntity(reqEntity);
putRequest.addHeader("X-Auth-Token",strToken);
httpResponse = client.execute(putRequest);
mResponseCode = httpResponse.getStatusLine().getStatusCode();