CI throws 401 on a CURL request |
I have created a simple API to check the newest version of software.
If I call this endpoint directly in the browser everything works. But when I try to get the same contents via curl, a 401 is thrown.... This is the request: PHP Code: $handler = curl_init($url); And this is the (simplified) endpoint: PHP Code:
READ:
debugbar - HTTP 401 Unauthorized Access Error What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |