擅长:python、mysql、java
<p>从请求2.4.2(<a href="https://pypi.python.org/pypi/requests">https://pypi.python.org/pypi/requests</a>)中,支持“json”参数。无需指定“内容类型”。所以较短的版本:</p>
<pre><code>requests.post('http://httpbin.org/post', json={'test': 'cheers'})
</code></pre>