I know about using a webclient it does the job but only for direct links

 webClient = new WebClient();
 webClient.DownloadFile(fileUrl, filePath);
it doesn't work for files which don't have direct links! how can I transfer these type of files to uptobox?

direct link: www.example.com/pic.jpg

indirect links: www.example.com/download?xxxxxxx

the specific website on which I faced this problem is www.pcloud.com