<?
$kadi = '';
$sifre = '';
$ch = curl_init('https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi'); 
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_POST, true);// post metodu ile mi ?
curl_setopt($ch, CURLOPT_POSTFIELDS,'login='.$kadi.'&password='.$sifre);
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // sonucu değişken olarak döndür
curl_setopt($ch, CURLOPT_TIMEOUT, 15); // timeout süresi
$result = curl_exec($ch); // çalıştır ve değişkene ata
curl_close($ch);
echo $result;
?>

gibi bir çalışma sana bağlantı sağlamanda yardımcı olabilir belki.