Connect to localhost from android device

前端 未结 3 1997
栀梦
栀梦 2021-01-16 03:14

i have already search this topic and still don\'t know how to make it work :(
I have a SOAP web service (ASP.NET), and this address (on my localhost) is http://localhos

3条回答
  •  情深已故
    2021-01-16 03:35

    Use Http Connection

    HttpClient httpclient = new DefaultHttpClient();            
    HttpGet httppost = new HttpGet("http://localhost/");
    HttpResponse response = httpclient.execute(httppost);              
    HttpEntity ent=response.getEntity();
    InputStream is=ent.getContent();
    

提交回复
热议问题