I need to post this string to a url :
https://sample.nodeurl.tld/api/getObjects.sjs?object=supporter& [email protected]&condition=Last_Modified>2010-05-05&limit=5&orderBy=Last_Modified
The issue is with multiple conditions. The following code works with a single condition, but cant figure out how to build a string with multiple conditions.
$query = array();
$query ["object"]="supporter";
$query ["condition"]="First_Name= $_POST[fname]";
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($query));
//return the transfer as a string
curl_setopt($ch, CURLOPT_POST, 1);
$output = curl_exec($ch);
condition=? Shouldn't that becondition[]=?