marklarah Posted March 11, 2009 Share Posted March 11, 2009 As in, read a remote page, with the users cookies and such. I have <? $url = "http://www.test.com"; $ch = curl_init(); $timeout = 5; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); curl_setopt($ch, CURLOPT_PROXY, IP Address); curl_setopt($ch, CURLOPT_PROXYPORT, Port No); $file_contents = curl_exec($ch); curl_close($ch); ?> but ??? Link to comment https://forums.phpfreaks.com/topic/149017-is-there-any-way-to-run-curl-exec-open-a-page-from-the-users-session/ Share on other sites More sharing options...
trq Posted March 11, 2009 Share Posted March 11, 2009 You cannot access a clients cookies if thats what your attempting. Link to comment https://forums.phpfreaks.com/topic/149017-is-there-any-way-to-run-curl-exec-open-a-page-from-the-users-session/#findComment-782508 Share on other sites More sharing options...
marklarah Posted March 11, 2009 Author Share Posted March 11, 2009 You cannot access a clients cookies if thats what your attempting. haha, you're making me sound like a hacker or something. Lemme explain, I'm trying to make a customized homepage, that is able to display things displayed on other sites, such as new emails, ratio on trackers etc. If the div containing the info for it is the same, I can access it an display it. If some sites require a login, I want it to login from that user (all on the page) and display the data. Link to comment https://forums.phpfreaks.com/topic/149017-is-there-any-way-to-run-curl-exec-open-a-page-from-the-users-session/#findComment-782513 Share on other sites More sharing options...
marklarah Posted March 11, 2009 Author Share Posted March 11, 2009 Actually thorpe, I see where you're coming from. I guess technically this could be considered XSS, but it's for legitimate purposes. Link to comment https://forums.phpfreaks.com/topic/149017-is-there-any-way-to-run-curl-exec-open-a-page-from-the-users-session/#findComment-782516 Share on other sites More sharing options...
trq Posted March 11, 2009 Share Posted March 11, 2009 It doesn't really matter what its considered. Your site cannot simply impersonate another client. Link to comment https://forums.phpfreaks.com/topic/149017-is-there-any-way-to-run-curl-exec-open-a-page-from-the-users-session/#findComment-782524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.