如何在Django中獲取所有請求標頭? - How can I get all the request headers in Django?

問題:

I need to get all the Django request headers. 我需要獲取所有Django請求標頭。 From what i've read, Django simply dumps everything into the request.META variable along with a lot aof other data. 根據我的閱讀,Django只是將所有內容都轉儲到request.META變量以及許多其他數據中。 What would be the best way to get all the headers that the client sent to my Django application? 獲取客戶端發送到我的Django應用程序的所有標頭的最佳方法是什麼?

I'm going use these to build a httplib request. 我將使用這些來構建httplib請求。


解決方案:

參考: https://stackoom.com/en/question/GJuD
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章