Welcome Guest, Not a member yet? Register   Sign In
Making POST requests in CI
#5

[eluser]skunkbad[/eluser]
You don't need cURL if you just need a simple POST. You could use PHP's file_get_contents() function, and set the third parameter to a stream context. This is documented in the PHP manual at http://php.net/manual/en/function.file-get-contents.php and http://www.php.net/manual/en/function.st...create.php . You could also use fopen(). Please note the comments at the bottom of both pages I mentioned, and you will find a solution to meet your needs. Also, cURL is an essential if you are a developer. You should take the time to learn how to use cURL, because it can do a lot for you.


Messages In This Thread
Making POST requests in CI - by El Forum - 12-31-2009, 02:35 PM
Making POST requests in CI - by El Forum - 12-31-2009, 04:17 PM
Making POST requests in CI - by El Forum - 12-31-2009, 09:46 PM
Making POST requests in CI - by El Forum - 12-31-2009, 10:29 PM
Making POST requests in CI - by El Forum - 12-31-2009, 10:31 PM
Making POST requests in CI - by El Forum - 12-31-2009, 10:33 PM
Making POST requests in CI - by El Forum - 01-01-2010, 04:12 AM
Making POST requests in CI - by El Forum - 01-01-2010, 08:32 AM
Making POST requests in CI - by El Forum - 01-01-2010, 08:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB