CURL and HTTPS, “Cannot resolve host”

前端 未结 11 1978
时光取名叫无心
时光取名叫无心 2020-11-28 08:25

I\'m trying to fetch the contents of a page using CURL. The page that is doing the fetching is https and the page it is trying to fetch is also https. I\'m getting an erro

11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 09:04

    add yourlocalhost
    ex. 127.0.0.1 cards.localhost in the /etc/hosts directory. Now restart apache server

提交回复
热议问题