Jump to content

cURL and Flash?


animeworld

Recommended Posts

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);
?>

Link to comment
https://forums.phpfreaks.com/topic/82812-curl-and-flash/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.