Jump to content

Is there any way to run cURL exec (open a page) from the users session?


marklarah

Recommended Posts

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 ???

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.