These two are the functions can capture remote address, for example this is a social network site example.com/user?privacyemail.php, this site is containing email of user or some kind of private info, curl and get content function in php can grap that, the problem is a have created a script with this, but it only captures javascript not the whole page, any suggestion? how to implement? this thing can be handy for patching security

closed as off-topic by Stephane, Mark, Xander, TildalWave, M'vy Nov 26 '14 at 14:00

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Information security within the scope defined in the help center." – Stephane, Mark, Xander, TildalWave, M'vy
If this question can be reworded to fit the rules in the help center, please edit the question.


If authenticated properly, curl should retrieve the rendered page. Here's an example in PHP to retrieve a (rendered) page:

// Get cURL resource
$curl = curl_init();
// Set some options - we are passing in a useragent too here
curl_setopt_array($curl, array(
    CURLOPT_URL => "example.com/user?privacyemail.php",
    CURLOPT_USERAGENT => "Some user Agent"
// Send the request & save response to $resp
$resp = curl_exec($curl);
// Close request to clear up some resources
  • ok then fopen can help to write all rendered page into one file.. so that it will be accessible for later use – Talha Habib Nov 26 '14 at 7:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.