PHP CURL is too slow for localhost

后端 未结 4 1551
暗喜
暗喜 2020-12-17 22:26

I have setup two apps in my WAMP environment. Performance of both the sites is OK. They return data in less than a second. The problem is that when I curl one site from anot

4条回答
  •  一整个雨季
    2020-12-17 23:11

    Yes, is a DNS lookup problem.

    On Windows 7 x64 i managed to overcome this issue

    (curl call between applications on different ports in localhost) by editing the host file ( C:\Windows\System32\drivers\etc ).

    Un-comment on the line that says: 127.0.0.1 localhost , reboot and you're done.

提交回复
热议问题