FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Curl

 


asiddle423
I have a script that connects to the yahoo server and stores some information in a cookie, is their away i can make the script run without storing cookies


heres some of the script:

Code:
//  Execute Curl For Login
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($ch, CURLOPT_URL, $url_login);
         curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
         //curl_setopt ($ch, CURLOPT_COOKIEJAR, $this->email_id.".php");
         curl_setopt($ch, CURLOPT_HEADER , 1);
         ob_start();
         $response = curl_exec ($ch);
         ob_end_clean();
         curl_close ($ch);
         unset($ch);
         //  End Execute Curl For Login
      
         //  Call Address Book Page Through Curl
         $url_addressbook = "http://address.yahoo.com/yab/us";
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
         //curl_setopt($ch, CURLOPT_COOKIEFILE, $this->email_id.".php");
         curl_setopt($ch, CURLOPT_HEADER , 1);
         curl_setopt($ch, CURLOPT_URL, $url_addressbook);
         $result = curl_exec ($ch);
         curl_close ($ch);
         unset($ch);
         //  End Call Address Book Page Through Curl
asiddle423
Is there anyone that is good with Curl?
If anyone can fix my script i will give all my Fri's
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.