how to send a list in python requests GET : <p>I'm trying to GET some data from the server. I'm doing a GET with the python requests library:</p>

<pre><code>my_list = #a list ['x', 'y', 'z']
payload = {'id_list': my_list}
requests.get(url, params=payload)
</code></pre>

<p>my server accepts a url: <code>https://url.com/download?id_list</code></p>

<p>but when I send this get request, I get an error:</p>

<blockquote>
  <p><code>&lt;h1&gt;400 Bad Request&lt;/h1&gt; 
  The server cannot understand the request due to malformed syntax.
  &lt;br /&gt;&lt;br /&gt; Got multiple values for a parameter:&lt;br /&gt; 
  &lt;pre&gt;id_list&lt;/pre&gt;</code></p>
</blockquote>

<p>I saw the log and the request looks like this:</p>

<p><code>url/download?id_list=x&amp;id_list=y&amp;id_list=z</code></p>

<p>how can I fix this?</p>
