Hướng dẫn php curl 401 unauthorized - php curl 401 trái phép

I have a simple curl request to the onelogin api written in PHP. The request works fine with my parameters from my terminal and I am able to login my user, however the php version I run on server, generates access token but then gives a 401 error when i try any GET or POST requests. Ive tried all sorts of curl parameters. An html form submits to this php page hosted on a lampp stack. Does not seem to work. Below is the php script with a simple GET request. Would really appreciate any help on this:

Bài Viết Liên Quan

Chủ Đề