HttpURLConnection.setRequestProperty("Authorization","Y2U0ZDQyY2QtNDE"); //设置Authorization
HttpURLConnection.getRequestProperty("Authorization"); //无法取得Authorization值
原因:源码HttpURLConnection类中,为了安全,已经屏蔽掉相关信息。
HttpURLConnection.setRequestProperty("Authorization","Y2U0ZDQyY2QtNDE"); //设置Authorization
HttpURLConnection.getRequestProperty("Authorization"); //无法取得Authorization值
原因:源码HttpURLConnection类中,为了安全,已经屏蔽掉相关信息。