CURLRequest returns 403 error / shell_exec returns 200 |
Environment: PHP: 7.4.9 — CodeIgniter: 4.0.4
Any ideas on this problem: When I consume an API using the CURLRequest PHP Code: $curlClient = \Config\Services::curlrequest(); I get a 403 error, however when I execute PHP Code: $response = shell_exec( 'curl -d "username=THEUSER&password=THEPASSWORD" -X POST ' . $thePath ); the api return 200 and the actual data. A bit more context, the api call is to get a JWT from a Wordpress authorisation plugin.
It may be the bug.
https://codeigniter4.github.io/CodeIgnit...der-change Upgrade 4.1.5. And see https://codeigniter4.github.io/CodeIgnit...urlrequest |
Welcome Guest, Not a member yet? Register Sign In |