
ionCube error when trying to use api
Hi, been testing out filerun (self-hosted) and it is working fine using browser. Everything seems to be working fine. I am now trying the API's and got into some issues:
- followed the doc to setup a client
- from a workstation, used curl -X POST -d "username=........ ", etc to obtain the access token
- then used curl -X PUT --header ......, etc to do upload a file (...../api.php/files/upload?.....)
- curl returned:
Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking.
ionCube was installed and filerun is working properly on browser, why didn't it work using curl?
I checked the path to the right php folder.
I am using: Win server 2012R2, IIS 8.5, Php 7.3.18.
Thanks for your help.
Customer support service by UserEcho
I renamed all the other php folders in the system and it is now at least not getting the ioncube error. I guess the curl call must have used a different ver of php than the one used thru web browser access.
cURL or a web browser, there shouldn't be any difference. Unless you are using different hostnames, which then might use different PHP configurations even if it's the same server.
Don't understand why it did what it did either. Hostname used was the same.