用于将数据过帐到表单的函数。
gs.form的Python项目详细描述
Author: | Michael JasonSmith |
---|---|
Contact: | Michael JasonSmith <mpj17@onlinegroups.net> |
Date: | 2014-05-05 |
Organization: | GroupServer.org |
Copyright: | This document is licensed under a Creative Commons Attribution-Share Alike 4.0 International License by OnlineGroups.Net. |
简介
本产品包含用于制作 httpPOST请求将数据发送到表单。大部分情况下 它由post_multipart实用程序组成,用于将数据发布到 一种形式。
虽然最初是为GroupServer编写的,但没有 特定于此产品中的GroupServer。
post_multipart
gs.form.post_multipart函数用于将数据发布到 表格:
post_multipart(host, selector, fields, files=[], usessl=False)
有关如何使用此函数的详细信息,请参阅文档。
致谢
post_multipart代码基于a Python recipe by Wade Leftwich。已更改为使用email.multipart创建 使用POST发送的多部分文档。
python标准库目前缺少一个模块来生成 POST到Web服务器。Issue 3244跟踪包含 模块进入标准库。