使用HttpURLConnection.getHeaderField,获取Header中某项的值,
有时写成:httpUrlConnection.getHeaderField("Location")
有时写成:httpUrlConnection.getHeaderField("location")
都是可以的,Java自带的HttpURLConnection,httpclient,okhttp,在查找这些键时,都忽略大小写
参考:
http://blog.csdn.net/lmj623565791/article/details/47911083
http://www.trinea.cn/android/android-http-api-compare/