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? Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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.