<?php $username = $_REQUEST['myuser']; $password = $_REQUEST['mypassword']; $uid = $_REQUEST['myid']; // initialize a cURL session $ch = curl_init('http://twitter.com/statuses/destroy/' . $id . '.xml'); // wait 2 miliseconds for connection curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); // do not output to curl_exec() curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // do a regular HTTP POST curl_setopt($ch, CURLOPT_POST, 1); // username and password curl_setopt($ch, CURLOPT_USERPWD, $username . ':' . $password); // execute the cURL session curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); echo curl_exec ($ch); curl_close($ch); ?>
hi i have use tha above code but when i test it online http://www.brandingbrands.net/temp/flashlite/php/delstat.php it gives me error Expectation Failed The expectation given in the Expect request-header field could not be met by this server. The client sent Expect: 100-continue but we only allow the 100-continue expectation. how to know is the id deleted or not and if id is not there to give error message