Since the server return the Content-Type of zipped size(gzip). I cannot get the correct bytes total for making a progress bar.
Using these two will only get the zip size Content-Length
pTransfer.getContentLength();
pTransfer.getHeaderField("Content-Length");
Is there any other approach that I can get the correct size?