使用 urllib 发布表单并像网络浏览器一样移动到该页面
我想使用 urllib 手动发布表单并将用户重定向到该页面,就像他单击了 Web 浏览器中的提交按钮一样。
我这样做的原因是因为在向贝宝提交付款之前,我需要将一些信息存储到数据库中。然后我想将用户处理到贝宝网站,而不让他再次单击“立即购买”按钮。
我正在使用 Django,如果这有什么关系的话。
这可能吗?谢谢
I want to POST a form manually using urllib and redirect the user to that page as if he had clicked the submit button in a web browser.
The reason I'm doing this is because before submitting a payment to paypal, I need to store some information into the DB. Then I want to handle the user to the paypal website without having him to click again in a "Buy now" button.
I'm using Django, if this matters somehow.
is this possible? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此工具可能会帮助您:http://wwwsearch.sourceforge.net/mechanize/
This tool might help you: http://wwwsearch.sourceforge.net/mechanize/