I send a PHP Curl request and get the message: Could not resolve host.
The only thing from all of the variety answers that could help me is writing “IP => host” into the /etc/hosts (referring to https://stackoverflow.com/a/56580719/6104996). Only then I can get data from URL
Meanwhile, if I send the request with Postman, I can get the data even if didn’t write anything in /etc/hosts.
Why? How do I see is the actual request from Postman to copy it in my code? I don’t want to write anything in the /etc/hosts
P.S. if I click “Code” -> “PHP – cURL” and copy paste it to my code, it returns me “Could not resolve host” anyway
