자바 코드가 아니어야합니다 :대상은 널 (null)
try {
// defaultHttpClient
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet(url);
HttpResponse httpResponse =httpClient.execute(httpGet);
HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
URL이 같은입니다
:
http://122.180.133.121:84/diogo/api/api.php?class=authenticate&method=login_check¶m={'userpassword':'777','username':'www'}
및 로그 캣 오류는 다음과 같습니다
java.lang.IllegalStateException: Target host must not be null, or set in parameters. scheme=null, host=null, path=http://122.170.103.168:86/diogo/api/api.php?class=authenticate&method=login_check¶m={'userpassword':'123','username':'krunal'}
이미 많은 솔루션을 검색하지만, 모두가 http 또는 www ..에 대해 말하는하지만 실제 문제는 무엇인지 모르겠다. 그냥 내 서버의 IP 주소 또는 무엇 때문입니다.?
이 있는지 확인 불법적 인 내용 만 분석하고 URL 매개 변수로 전달의 유효한 URL – Raghunandan
나는 이미 그것을 확인했다. – Riser
URL 인코딩을 시도하십시오. wild though guys. – Raghunandan