I recentely started working with curl and am trying to make a script which logs into rapidshare and retrieves your rapidshare premium accounts expiration date,points etc. Any suggestions how to do it?
php.net/manual/en/function.curl-setopt.php - check comments there. // params when logging to rapidshare, eg. username and password fields and values. $data = array('param' => 'value'); //..... curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); //..... curl_setopt($ch, CURLOPT_URL, 'rapidshare.com?.....'); $result = curl_exec($ch); // if you want to retrieve any infromation, // you need to parse $result string which contains web HTML code. PHP: