擅长:python、mysql、java
<p>要实例化urllib3中的请求对象,应该使用<a href="https://urllib3.readthedocs.io/en/latest/user-guide.html" rel="nofollow noreferrer">^{<cd1>}</a>。您将以附加的<a href="https://urllib3.readthedocs.io/en/latest/user-guide.html#request-data" rel="nofollow noreferrer">request data</a>形式传递头:</p>
<pre><code>http = urllib3.PoolManager()
webRequest = http.request('GET', urlofFilename, headers={'key': value})
</code></pre>