So finally I got it working. If you are sure your signature is correct and still get ERROR 32, this is because your request is not VALID. You can check this by:
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_URL, $this->status_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, “status={$parameters[“status”]}”);
curl_setopt($ch, CURLINFO_HEADER_OUT, true); //DEBUG METHOD TO GET SEND HEADERS
Send the request to Twitter: $result = curl_exec($ch);
Get the Send Request:
$status = curl_getinfo($ch, CURLINFO_HEADER_OUT); //DEBUG METHOD TO GET SEND HEADERS
echo “
”.print_r($status, true)."
";
Close it up: curl_close($ch);
If you need help. Send me Tweet on Twitter: @digital_human