關於android http字段X-requested-with的說明

數據抓包獲取到一個http請求如下

GET http://ofo.mobi.com/favicon.ico HTTP/1.1
Host: ofo.mobi.com
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Linux; Android 5.1; Nexus 5 Build/LMY47D) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36
Accept-Encoding: gzip, deflate
Accept-Language: en-US
X-requested-with: com.android.ofoapp

X-requested-with這個字段其實就是app的包名

參考閱讀
https://github.com/mozilla-mobile/focus-android/issues/1196

https://chromium.googlesource.com/chromium/src/base/+/master/android/java/src/org/chromium/base/BuildInfo.java

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章