A
A
Alexander2014-03-18 08:18:49
Java
Alexander, 2014-03-18 08:18:49

Android. How to get the first 20 kilobytes from a web page?

Hello!
There is a need to download the first 20 kilobytes of a web page. How can this be done programmatically in java, in particular for android?
Those. at the beginning of the page there is some text that you need to get, without downloading the entire page, for parsing.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Morozov, 2014-03-18
@cry_san

HTTP has a Range parameter, using it you can download only the first N required bytes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question