使用 urllib 发布表单并像网络浏览器一样移动到该页面

发布于 2024-10-19 02:35:20 字数 187 浏览 7 评论 0原文

我想使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文