title: which R package provides functionality similar to pythons urllib
body: <p>My task is to port a snipped of python code which uses python <code>urllib</code> to R.
  This is the entire python code:</p>
  
  <pre><code>import urllib.parse
  import urllib.request
  
  url = "https://www.uniprot.org/uploadlists/"
  
  params = {
    "from": "ACC+ID",
    "to": "ENSEMBL_ID",
    "format": "tab",
    "query": "P40925 P40926 O43175 Q9UM73 P97793"
  }
  
  data = urllib.parse.urlencode(params)
  data = data.encode("utf-8")
  req = urllib.request.Request(url, data)
  with urllib.request.urlopen(req) as f:
    response = f.read()
  print(response.decode("utf-8"))
  </code></pre>
  
  <p>I am not to keen to use <code>paste</code> and <code>paste0</code> to build url's manually in R.
  What I did find is the R <code>urltools</code> package.
  But it does not help me with url-encoding the data as <code>urllib.parse.urlencode</code> does.</p>
  
  <p>What would be the R package to use to re-implement the python code? Or should I use <code>reticulate</code>?</p>
  
  <p>Thank you</p>