rygonet Posted May 8, 2007 Share Posted May 8, 2007 Hey everyone, First of all, thanks for such an awesome community, I have a passion for PHP and I love to see such a large community full of people who are similar to me! Here's my code snippet: $ch = curl_init(); // set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://formtogoto.com/form.asp"); // Do a POST $data = array('var1' => 'FALSE', 'var2' => '2'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); // grab URL, and return output $output = curl_exec($ch); // close curl resource, and free up system resources curl_close($ch); $output = strtoupper($output); echo $output; Now, I am trying to be able to manipulate the OUTPUT so that it doesn't look like the webpage that I am POSTing to.. I would like to make everything uppercase, in this case.. When I run this script, I see the whole webpage (not in uppercase) and the number "1" at the very bottom (which is not on the original form that im POSTing to).. What the heck am I doin' wrong? Thanks in advance.. -Ryan Quote Link to comment https://forums.phpfreaks.com/topic/50543-curl-post-help/ Share on other sites More sharing options...
rygonet Posted May 8, 2007 Author Share Posted May 8, 2007 Nevermind, problem fixed! Forgot "RETURNTRANSFER" option to be set to true.. Quote Link to comment https://forums.phpfreaks.com/topic/50543-curl-post-help/#findComment-248363 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.