vendredi 4 décembre 2015

Laravel 5 - SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. CURL ONLY

i have a next problem. I build a little REST API with Laravel 5. Everything works fine. I can get response (200 OK) if I create request with POSTMAN or simply with browser.

But when I try to make curl request with "client" php application I get the folowing error:

SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it. CURL ONLY

Database is on dev server, I don't have local DB. Both API and CLIENT are on local machine.

Thanks in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire