Registering for account using post requests python
<p>I'm trying to register in soundcloud using requests post. I found a post request in network tab. Here's the page information.</p>

<p>This is under "general"</p>

<pre><code>Request URL:https://sign-in.soundcloud.com/sign-up/email? 
client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&amp;app_version=1463149317
Request Method:POST
Status Code:201 Created
Remote Address:72.21.91.127:443
</code></pre>

<p>This is under "Response Headers"</p>

<pre><code>Access-Control-Allow-Headers:Authorization, Content-Type, Device-Locale
Access-Control-Allow-Methods:GET, POST, PUT, DELETE
Access-Control-Allow-Origin:https://soundcloud.com
Access-Control-Expose-Headers:Date
Access-Control-Max-Age:1728000
Content-Encoding:gzip
Content-Length:142
Content-Type:application/json;charset=utf-8
Date:Tue, 17 May 2016 07:17:42 GMT
Server:am/2
Vary:Origin
</code></pre>

<p>This is under "Request Headers"</p>

<pre><code>Accept:application/json, text/javascript, */*; q=0.1
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Content-Length:294
Content-Type:application/json
Host:sign-in.soundcloud.com
Origin:https://soundcloud.com
Referer:https://soundcloud.com/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3)  
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36
</code></pre>

<p>This is under <strong>Payload</strong></p>

<pre><code> {"scope":"fast-connect non-expiring purchase signup upload","client_id":"02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea","email_sign_up_token":"dd33851c6df06a3c77f8e1d143e24b90b3a39fc7","recaptcha_response":"","email":"email@gmail.com","password":"password","date_of_birth":{"month":5,"year":2000}}
</code></pre>

<p>So what I'm trying to do is register at soundcloud through my script using that url. I don't know how I can use the payload data. I tried what I normally try </p>

<pre><code>data = {'email':'email','password':'password'}

url = 'https://sign-in.soundcloud.com/sign-up/email?client_id=02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea&amp;app_version=1463149317'
response = requests.post(url,data=data)
print response
</code></pre>

<p>This returns me 400 error. How can I tackle this?</p>