EK Posted March 10, 2011 Share Posted March 10, 2011 I'm doing a cURL post to a server and it returns "true No_Error Data was accepted 10356546 3770 false 0 " Form --> Method=Post --> submit.php (this is the page that's doing the cURL post and the server returns data that appears on this page). How do I take this and put it into a string? Link to comment https://forums.phpfreaks.com/topic/230275-anyway-to-get-content-of-current-page-and-put-into-string/ Share on other sites More sharing options...
EK Posted March 10, 2011 Author Share Posted March 10, 2011 So what I mean, is that as soon as I do $result = curl_exec($ch); it makes that above line of output appear. How take this output and put it into a string, so I can manipulate the data before moving onto the next page? Link to comment https://forums.phpfreaks.com/topic/230275-anyway-to-get-content-of-current-page-and-put-into-string/#findComment-1185861 Share on other sites More sharing options...
btherl Posted March 11, 2011 Share Posted March 11, 2011 Try setting this option with curl_setopt(): CURLOPT_RETURNTRANSFER TRUE to return the transfer as a string of the return value of curl_exec() instead of outputting it out directly. Link to comment https://forums.phpfreaks.com/topic/230275-anyway-to-get-content-of-current-page-and-put-into-string/#findComment-1185968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.