CURL没法请求本地

WBOY
Release: 2016-06-13 12:04:37
Original
1046 people have browsed it

CURL无法请求本地
CURL和file_get_content都一样,请求本地就会出现页面加载很长时间最后超时,但是请求其他地址,无论是192.168.1.1还是baidu.com什么的都能正常。
环境是nginx+php
后来我将这个环境停用安装了wampserver,能正常工作,有谁了解这是什么问题?
------解决方案--------------------
请求本地是什么地址?
你是否在浏览器中自己手工测试过?测试过正常就没有问题的。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!