为什么HTTP 请求没有回应?
问题描述:
我设置了如下的 HTTP 请求,但是为什么这个 HTTP 请求没有回应?
AsyncHttpClient client = new AsyncHttpClient();
Log.d("click","click");
client.get("http://www.baidu.com", new AsyncHttpResponseHandler()
{
@Override
public void onSuccess(String response) {
Log.d("response",response);
//System.out.println(response);
}
});
答
嗯 这个确实要用到IP地址
答
要用IP地址吧
client.get("http://115.239.210.27", new AsyncHttpResponseHandler()
{