use HEAD method to get size when download file