以Django中发送的顺序检索POST数据 [英] Retrieve POST data in the order they were sent in in Django

查看:146
本文介绍了以Django中发送的顺序检索POST数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要这样做的原因是为了PayPal的即时付款通知 - 您必须通过以完全相同的顺序发送数据来确认通知,以确保数据的完整性。我不能想出这一个!

解决方案

也许 HttpRequest.raw_post_data 可以是你的朋友吗?自Django 1.3起就可以使用。


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!

解决方案

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

这篇关于以Django中发送的顺序检索POST数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆