POST array through PHP and get in Python
<p>I am posting a array </p>

<pre><code>$name[0] = "anurag";
$name[1] = "abhishek"; 
$ch = curl_init('http://localhost:8000/v0/url-generator');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "name=$name");
curl_exec ($ch);
curl_close ($ch);
</code></pre>

<p>In python I got name = array .</p>

<pre><code>if request.method == 'POST':
        name = request.POST["name"]

print name
</code></pre>

<p>output = array.</p>

<p>I would like to output this in python:</p>

<pre><code>name = ['anurag','abhishek']
</code></pre>
