I am used request in python. I try to sent a post request and need send array of array. This is my code:
import requests
def connecttomlapipost(url, vector):
headers = {'content-type': 'application/json'}
r= requests.post(url, verify=False, auth=('admin', 'admin'), data = vector, headers=headers)
return r
print connecttomlapipost('https://......', [[2,3],[1,5]])
the server return: error 500. I tested using POSTMAN and the server return a correct result