redarrow Posted October 5, 2009 Share Posted October 5, 2009 advance thank you.. after you log into a account what do you set to get the url to go to another page example when logged in i am on index.php but i want to view let say picture.php while logged in... what do i set or do cheers... this get me in, now how to get to the page i want, what do i set or put cheers. <?php $login_email=' '; $login_pass=' '; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://my_website.com'); curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($login_email).'&pass='.urlencode($login_pass).'&login=Login'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIEJAR, str_replace('\\','/',dirname(__FILE__)).'/fb_cookies.txt'); curl_setopt($ch, CURLOPT_COOKIEFILE, str_replace('\\','/',dirname(__FILE__)).'/fb_cookies.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0); 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.3"); curl_exec($ch); ?> Quote Link to comment https://forums.phpfreaks.com/topic/176514-curl-help/ Share on other sites More sharing options...
corbin Posted October 5, 2009 Share Posted October 5, 2009 You should just be able to make another request making sure to send the cookie stuff along again. Quote Link to comment https://forums.phpfreaks.com/topic/176514-curl-help/#findComment-930475 Share on other sites More sharing options...
redarrow Posted October 5, 2009 Author Share Posted October 5, 2009 can you give an example please because all i got is the index page and now want picture page all members cheers... how do you make another request please.. Quote Link to comment https://forums.phpfreaks.com/topic/176514-curl-help/#findComment-930482 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.