Python标准库,用于POST多部分/表单数据编码数据 [英] Python standard library to POST multipart/form-data encoded data
本文介绍了Python标准库,用于POST多部分/表单数据编码数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想打印多部分/表单数据编码数据。
我找到一个外部模块: http://atlee.ca/software /poster/index.html
但是我宁愿避免这种依赖。有没有办法使用标准库?
I would like to POST multipart/form-data encoded data. I have found an external module that does it: http://atlee.ca/software/poster/index.html however I would rather avoid this dependency. Is there a way to do this using the standard libraries?
谢谢
推荐答案
标准库目前不支持。有食谱配方,其中包含您可能想要复制的相当短的代码片段,尽管如此,长期以来还有其他的选择。
The standard library does not currently support that. There is cookbook recipe that includes a fairly short piece of code that you just may want to copy, though, along with long discussions of alternatives.
这篇关于Python标准库,用于POST多部分/表单数据编码数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文