title: http.client.HTTPConnection.request vs. urllib.request.Request
body: <p>urllib.request and http.client are both python standard libraries. The docs for the relevant method from the former is <a href="https://docs.python.org/3.5/library/urllib.request.html#urllib.request.Request" rel="nofollow noreferrer">here</a> and the latter, <a href="https://docs.python.org/3.5/library/http.client.html#http.client.HTTPConnection.request" rel="nofollow noreferrer">here</a> (am using 3.5)</p>
  
  <p>Does anyone know why they have 2 methods within the standard libraries which appear to do the same thing, or what the difference between them is?</p>
  
  <p>Reason for asking, is that I am working on merging some classes with the goal of sending a POST request of <code>content-type</code> <code>multipart/form-data</code> using Python standard libraries only. There is a question about that <a href="https://stackoverflow.com/questions/1270518/python-standard-library-to-post-multipart-form-data-encoded-data">here</a> with a <a href="https://pymotw.com/3/urllib.request/#uploading-files" rel="nofollow noreferrer">link to code</a> with a class which does it.</p>