Retrieve POST data in the order they were sent in in Django

雨燕双飞 提交于 2019-12-12 11:07:20

问题


Is there a way to get data POSTed to a Django view in the order in which it appeared in the HTTP header?

The reason I need this is for PayPal's Instant Payment Notification - you have to acknowledge the notification by sending the data back in exactly the same order to ensure the integrity of the data. I can't figure this one out!


回答1:


Maybe HttpRequest.raw_post_data can be your friend? It is available since Django 1.3.



来源:https://stackoverflow.com/questions/5451335/retrieve-post-data-in-the-order-they-were-sent-in-in-django

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!