Submitting data using the POST method without a form

How to send data using the POST method without a form and without js.


Answer 1, authority 100%

Well, judging by the label PHP, not HTML, then so

<?  
/*
Simple HTTP POST.
 ,    POST  cURL.
     ,      cURL.
©oded by [email protected] at sysman.ru 2007
thx to Miscђka
*/
$url = "http://www.sysman.ru/index.php?act=Login&CODE=01"; // URL    
$login = ''; //  
$password = ''; // 
$ch = curl_init();  
curl_setopt($ch, CURLOPT_URL,$url); //  URL      
curl_setopt($ch, CURLOPT_HEADER, 1); //     
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //     ,   .
curl_setopt($ch, CURLOPT_TIMEOUT, 3); //   4  
curl_setopt($ch, CURLOPT_POST, 1); //   POST
curl_setopt($ch, CURLOPT_POSTFIELDS, "referer=&t=&f=&st=&UserName=$login&PassWord=$password&CookieDate=1"); //  
$result = curl_exec($ch);  
curl_close($ch);
if (strpos($result,'302 F')!== FALSE) echo "<b>Good!</b>";
else echo "<b>Bad</b>";
?>

Example licked from some site.