I'm creating an app on Android and consuming a ws that is in a hosting 1 & 1 problem I have is that when I run my sentence always the error that can not find the document however if I copy and paste I get the url to which I am calling in an explore returns me the correct data.
Any ideas?
try {
// defaultHttpClient
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
is = httpEntity.getContent();
} catch (IOException e) {
e.printStackTrace();
}
Error:
Your browser can't find the document corresponding to the URL you typed in.