java - How to get 'complete' download size of a url with jsoup -
hey guys hoping me out.
i using jsoup scrape websites need total bytes downloaded , cant seem figure out.
i.e need total bytes downloaded 'get' request including headers, body, etc. in advance.
maybe 1 @ api have helped:
connection.response response = ... int size = response.bodyasbytes().length;
(http://jsoup.org/apidocs/org/jsoup/connection.response.html#bodyasbytes())
Comments
Post a Comment