首页 > 其他分享 >HttpURLConnection Authorization 取得问题

HttpURLConnection Authorization 取得问题

时间:2022-12-14 18:34:47浏览次数:56  
标签:Y2U0ZDQyY2QtNDE 源码 Authorization 取得 屏蔽掉 HttpURLConnection

HttpURLConnection.setRequestProperty("Authorization","Y2U0ZDQyY2QtNDE"); //设置Authorization

HttpURLConnection.getRequestProperty("Authorization"); //无法取得Authorization值

原因:源码HttpURLConnection类中,为了安全,已经屏蔽掉相关信息。

标签:Y2U0ZDQyY2QtNDE,源码,Authorization,取得,屏蔽掉,HttpURLConnection
From: https://www.cnblogs.com/atq999/p/16982928.html

相关文章