Welcome Guest, Not a member yet? Register   Sign In
Need some help with CURL
#1

Hello,

I am currently using CodeIgniter 2.2.3 and I am trying to execute a CURL Statement which requires me to use '@' before the FileURL.

The problem is, I am running php 5.5.9 and using '@' before URL has been deprecated after php 5.5.

I tried using $data = array( 'file' => new CURLFile($filePath) );

But this doesn't seem to run correctly when I execute the script. Digging a few more thing, I found out it is necessary to set CURLOPT_SAFE_UPLOAD to true, so I did that as well, but its still not working!

I get no reply from the API Server whatsoever! I asked the API Developer to test my code and he said it worked perfectly fine for him (just running it using plain PHP), but with CodeIgniter, I am not able to run the script correctly.

What am I doing wrong? Is there anything else that has to be done?


Thanks,
Reply


Messages In This Thread
Need some help with CURL - by prateek.kathal - 12-14-2015, 01:08 PM
RE: Need some help with CURL - by includebeer - 12-17-2015, 06:44 PM
RE: Need some help with CURL - by skunkbad - 12-17-2015, 09:19 PM
RE: Need some help with CURL - by prateek.kathal - 12-19-2015, 01:28 AM
RE: Need some help with CURL - by includebeer - 12-20-2015, 07:19 AM
RE: Need some help with CURL - by prateek.kathal - 12-20-2015, 04:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB