[Answer]-Python django urllib2.request , post request, my code not working . data i am sending is not being detected

1👍

Not tested, but it might work better urlencoding the json data than the other way round:

jsondata = {"create_method" : "file","title":"s9fsdf"}
data = {"data" : json.dumps(jsondata)}
data = urllib.urlencode(data)
req = urllib2.Request(url)
req.add_data(data)

Leave a comment