Results 1 to 1 of 1
-
28th Jul 2012, 08:42 PM #1OPProbation
2Shared longin function
Hello,
I'm develloping an upload function for 2shared using curl but i don't manage to use the login cookie it seems that it well login but after it sill ask me to login.
PHP Code:$url = 'http://www.2shared.com/login.jsp';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, array(
'login' => 'login',
'password' => 'pass'
));
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies_file);
curl_exec($ch);
curl_close($ch);
Thanksonyri Reviewed by onyri on . 2Shared longin function Hello, I'm develloping an upload function for 2shared using curl but i don't manage to use the login cookie it seems that it well login but after it sill ask me to login. $url = 'http://www.2shared.com/login.jsp'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_NOBODY, true); curl_setopt($ch, CURLOPT_COOKIESESSION, true); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
function backlink help
By Chris2k in forum Web Development AreaReplies: 13Last Post: 26th Apr 2012, 09:43 PM -
time ago function
By Chris2k in forum Web Development AreaReplies: 2Last Post: 21st Jan 2012, 05:58 AM -
[PHP] }else{ Function 3 parts
By viruz99 in forum Web Application/Script SupportReplies: 4Last Post: 17th Jan 2012, 01:33 AM -
[Help] Fix PHP function
By m1rr0z in forum Web Development AreaReplies: 0Last Post: 15th Apr 2011, 09:40 AM -
PHP Function (Link_Maker)
By litewarez in forum Webmaster ResourcesReplies: 0Last Post: 2nd Dec 2008, 01:28 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...