animeworld Posted December 22, 2007 Share Posted December 22, 2007 What I'm trying to do is upload to megavideo using a php script. But they process the upload using flash. Is there a way around? Here is my script so far... <?php $postData['action'] = "submit"; $postData['tags'] = "Test"; $postData['title'] = "Test"; $postData['language'] = "1"; $postData['message'] = "Test"; $postData['channels'] = "1;"; $postData['file'] = "@test.avi"; $postData['private'] = "1"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.megavideo.com/?c=upload"); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.9"); curl_setopt($ch, CURLOPT_COOKIE, "removed"); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); curl_setopt($ch, CURLOPT_REFERER, "http://www.megavideo.com/?c=upload"); curl_exec($ch); curl_close($ch); ?> Quote Link to comment https://forums.phpfreaks.com/topic/82812-curl-and-flash/ Share on other sites More sharing options...
animeworld Posted December 23, 2007 Author Share Posted December 23, 2007 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/82812-curl-and-flash/#findComment-421402 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.