cURL Failed to connect to port 80
I am using cURL in my PHP script to test my API. When i try to use my function to get data it throw me an error Error: Failed to connect to alenke.test port 80: Connection refused but when I execute it in the terminal curl --ipv4 -v "http://alenke.test/wp-json/chatbot/v1/brand"; it give me `Trying 127.0.0.1... * TCP_NODELAY set * Connected to alenke.test (127.0.0.1) port 80 (#0) GET /wp-json/chatbot/v1/brand HTTP/1.1 Host: alenke.test User-Agent: curl/7.54.0 Accept: HTTP/1.1 200 OK Server: nginx/1.15.7 Date: Sun, 01 Sep 2019 16:47:36 GMT Content-Type: application/json; charset=UTF-8 Transfer-E
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.