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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -