Django / Python如何获取完整的请求标头? [重复]

时间:2021-05-02 16:54:43

This question already has an answer here:

这个问题在这里已有答案:

I've been looking over what I can find about this and found something about denying access to specific user-agents but couldn't find how I can actually get the full request header. I am trying to make a customized analytics app so would like access to the full headers.. any info is appreciated.

我一直在寻找我能找到的关于此的内容,并发现了一些关于拒绝访问特定用户代理但无法找到我如何实际获得完整请求标头的内容。我正在尝试制作一个自定义的分析应用程序,以便访问完整的标题..任何信息表示赞赏。

1 个解决方案

#1


11  

All the headers are available in request.META. See the documentation.

所有标题都可在request.META中找到。请参阅文档。

#1


11  

All the headers are available in request.META. See the documentation.

所有标题都可在request.META中找到。请参阅文档。