【发布时间】:2013-09-20 19:51:12
【问题描述】:
假设我在一个表单中有以下 HTML 输入元素:
<input name="title_input" type="text" id="missing_value" title="Title">
如果我想提交 POST:
s = requests.Session()
s.get(url)
postResult = s.post(url, {'title_input':'This Is the Name of the Title'})
即使元素有缺失值属性,这个 POST 仍然可以正常工作吗?
即即使原始 HTML 中缺少 value="This Is The Name of the Title",Python 会在元素中附加它吗?
【问题讨论】:
标签: python html forms python-requests