How to replicate this data post by ajax with curl?
...
data: {
search: JSON.stringify({
daterange : "custom",
daterangecustom : {
start : "2013-03-01T23:59:59",
end : "2018-03-01T23:59:59"
}
}),
limit: 50
},
...
I dont need the whole code for curl, but only $params
value:
curl_setopt($curl, CURLOPT_POSTFIELDS, $params);
I`ve been trying to make this work for a while, with no success. Thanks a lot to anyone with a solution here!!