note 92481 rejected from function.curl-setopt by danbrown

From: Date: Mon, 27 Jul 2009 03:28:52 +0000
Subject: note 92481 rejected from function.curl-setopt by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158760@lists.php.net to get a copy of this message
Note Submitter: contacto at portalcumbia dot com ---- <? $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??

« previous php.notes (#158760) next »