如何在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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章