Code example for BasicHttpRequest

0
    String method = st.nextToken();
   //String uri = st.nextToken(); 
//    Log.d(LOG_TAG, uri); 
//    String realUri = uri.substring(1); 
//    Log.d(LOG_TAG, realUri); 
    request = new BasicHttpRequest(method, mUrl);
    return request;
  } 
 
  private HttpResponse download(String url) {
    DefaultHttpClient seed = new DefaultHttpClient();
    SchemeRegistry registry = new SchemeRegistry();
    registry.register(
            new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
    SingleClientConnManager mgr = new SingleClientConnManager(seed.getParams(),
        registry);
    DefaultHttpClient http = new DefaultHttpClient(mgr, seed.getParams());
    HttpGet method = new HttpGet(url);
    HttpResponse response = null;
    try { 
      Log.d(LOG_TAG, "starting download");