我正在制作一个调用 url 的应用程序。拨打电话的方式如下:
//…
public String doInBackground(String... urls){
String url = urls[0];
try {
Log.i("base","Parsing");
// defaultHttpClient
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost(url);
HttpResponse httpResponse = httpClient.execute(httpPost);
HttpEntity httpEntity = httpResponse.getEntity();
xml = EntityUtils.toString(httpEntity);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
return xml;
}
//...
new callingUrl().execute("http://www.myurl.com/directory/myxml.xml");
我有兴趣知道是否通过日志或其他方式,任何人都可以看到我调用的 URL
如果是这样,还有什么要隐藏的吗?
非常感谢您提前
问候