n9ne — 2005-01-06T17:35:54-05:00 — #1
I have a PHP script setup using cURL to SEND POST DATA to a remote form. Now the problem is after it sends the data, it also follows the POST url so that I get the page I'm POSTing to put out into my browser.
How do I stop this and simply, say, just echo a message 'done' or something along those lines?
codyrockx — 2005-01-06T18:53:27-05:00 — #2
Small tweak there When using curl, the default setup is so that once the send is done, it outputs the results to the page. Add the following line before your curl_exec, this tells curl to return the page in the form of a variable, which is returned when you run the statement curl_exec.
sillysoft — 2005-01-06T18:59:35-05:00 — #3
Actually if you dont want to store it in a string, just not show it then: