Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.

Paste

Pasted as Java by Yunus ( 14 years ago )
String line = null;

public HttpGetMethod(String url, iJsonH ijsonh) {
  HttpConnectionParams.setSoTimeout(localhttpClient.getParams(), 25000);
  HttpResponse response = null;
  try {
   HttpGet httpGet = new HttpGet(url);
   response = localhttpClient.execute(httpGet);
   int resCode = response.getStatusLine().getStatusCode();
   if (resCode == 200) {
    System.gc();
    Runtime.getRuntime().gc();
    HttpEntity httpEntity = response.getEntity();
    line = EntityUtils.toString(httpEntity);    
    ijsonh.parseMyData(line, true);
   }

 

Revise this Paste

Parent: 51665
Your Name: Code Language: