![]() |
Form Data invalid when sending POST(through CURL) to Codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Form Data invalid when sending POST(through CURL) to Codeigniter (/showthread.php?tid=47737) |
Form Data invalid when sending POST(through CURL) to Codeigniter - El Forum - 12-20-2011 [eluser]Unknown[/eluser] Hi there, hopefully someone can help me. Let me explain shortly what i want to do: In an external Website we have a form with Post Data which we want to send through Curl to one Codeigniter Installation. The Problem is that CI returns a 500 Error together with the message "An Error Was Encountered, The Formulardata u sent is invalid". If i change POSTFIELDS to a simple string it does work, also if i make just a testscript outside CI. So Curl seems to be fine. Something in CI breaks up the POST array, i also tried to set the permit uri characters.. but that didnt helped :// Attached the Curl Script and its Output. Code in CI is just a controller with a simple print of $_POST. Would be great if someone has an idea what could be the problem.. Thanks!!! Quote:Array Code: function curl_call($url, $data, $print=true){ |