D
D
daminik002017-02-17 20:27:09
Java
daminik00, 2017-02-17 20:27:09

how to make http request in java

I need to get information from the server which is stored in a .txt file. The problem is that it is desirable to get it by breaking it into lines. BufferedReader from JAVA in Android for some reason does not work, or I'm doing something wrong.

BufferedReader list = new BufferedReader(new InputStreamReader(this.sourseURL.openStream()));
String strTemp = "";
while (null != (strTemp = list.readLine())) {
    ...
}

Thanks for the help)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question