Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 Python 发送一个 POST 请求,可以说将整个 POST 正文设置为某个字符串。我该怎么做?urllib/urlib2/httplib,对我来说没关系...
谢谢你。
例如 urllib2 似乎允许以简单的方式设置正文(以及标题):http: //docs.python.org/library/urllib2.html#urllib2.Request