note 92481 added to function.curl-setopt
| From: | contacto at portalcumbia dot com | Date: | Sun, 26 Jul 2009 22:41:36 +0000 |
| Subject: | note 92481 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158750@lists.php.net to get a copy of this message | ||
<?
$data['submit2']="upload your file\n";
$data['img1']="@musica1.mp3";
$url_subir="http://www.supload.com/mp3_upload.php";
$ch = curl_init($url_subir);
curl_setopt($ch, CURLOPT_COOKIEJAR,"cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE,"cookie.txt");
curl_setopt($ch, CURLOPT_REFERER, "http://www.supload.com");
curl_setopt($ch, CURLOPT_URL, $url_subir);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$html = curl_exec($ch);
echo $html;
?>
that does not work??
----
Server IP: 64.71.164.2
Probable Submitter: 200.121.208.161
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/92481
Del: integrated -- https://master.php.net/note/delete/92481/integrated
Del: useless -- https://master.php.net/note/delete/92481/useless
Del: bad code -- https://master.php.net/note/delete/92481/bad+code
Del: spam -- https://master.php.net/note/delete/92481/spam
Del: non-english -- https://master.php.net/note/delete/92481/non-english
Del: in docs -- https://master.php.net/note/delete/92481/in+docs
Del: other reasons-- https://master.php.net/note/delete/92481
Reject -- https://master.php.net/note/reject/92481
Search -- https://master.php.net/manage/user-notes.php