this is made from the RL plugin
based on this http://www.besthostingforums.com/showthread.php?t=60261
PHP Code: 
<?

function wu_login($uwuuser,$uwupass,$uwucookie){

    
$Url "http://www.wupload.com/";
    
$ref "http://www.wupload.com/";

    
$page RL_based_curl($Url,0,$uwucookie,0);
    @
unlink($uwucookie);
    
$post = array();
    
$post['email']  = $uwuuser;
    
$post['password'] = $uwupass;
    
$post['redirect'] = '/news';
    
$post['rememberMe'] = '1';
    
    
$Url "http://www.wupload.com/account/login";
    
$page RL_based_curl($Url,$post,$uwucookie,"role=anonymous; PHPSESSID=0",0,1,0);
    
$cookie $page."; isJavascriptEnable=1"
    
is_notpresent($cookie'Set-Cookie: email=''Error in login.');
    
    return 
$cookie;

}
function 
wu_upload($filelocation,$uwucookie,$cookie){
    
    
$ref "http://www.wupload.com/";
    
    
$sess_id cut_str($cookie,'PHPSESSID=',';');
    
$page RL_based_curl($ref,0,$uwucookie,"http://www.wupload.com/file-manager/list");                
    
preg_match("@uploadServerHostname = '(s\d+.wupload.com)'@i"$page$us);
    
$pid "upload_".time().rand(100,999)."_$sess_id".rand(1000,80000);
    
$up_loc "http://{$us[1]}/?callbackUrl=http://www.wupload.com/upload/done/:uploadProgressId&X-Progress-ID=$pid";
    
    
$post = array();
    
$post['folderId'] = "0";
    
$post['files[]'] = "@$filelocation";

    
$upfiles RL_based_curl($up_loc,$post,$uwucookie,$ref,0,1,0);
    
preg_match('%Location: (.*)\r%'$upfiles$match);
    
$linkul $match[1];
    
$page RL_based_curl($linkul,'',$uwucookie);
    if(
preg_match('@"id":(\d+)@i'$page$id)) {
        
$download_link "http://www.wupload.com/file/" $id[1];
        if(
preg_match('@"name":"([^"]+)"@i'$page$fn)) {
            
$download_link .= "/" $fn[1];
        }
    }

    return 
$download_link;
}

?>