[SOLVED]HTTP request API |
(01-13-2024, 05:40 PM)kenjis Wrote: See https://codeigniter4.github.io/CodeIgnit...ml#headers hi , this is my code : Code: public function getDPIdispenser() I have this error : 22 : The requested URL returned error: 401 In postman work only if i work as this screenshot https://ibb.co/KFDGDn6 How can i do this with code ? edit: Solved by this code : $response = $client->request('GET', $uri , ['auth' => ['xxxxx', 'xxxxxx', 'basic']]); |
Welcome Guest, Not a member yet? Register Sign In |