Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
cygwin/windowsxp上的curl挂起_Curl_Cygwin_Windows Xp - Fatal编程技术网

cygwin/windowsxp上的curl挂起

cygwin/windowsxp上的curl挂起,curl,cygwin,windows-xp,Curl,Cygwin,Windows Xp,我正在Windows XP上的cygwin中尝试一个非常基本的curl命令。它应该将install.html文件下载到我的本地目录中,文件名为output。它做了一些事情,但没有任何进展的迹象: curl -o output http://cygwin.com/install.html % Total % Received % Xferd Average Speed Time Time Time Current

我正在Windows XP上的cygwin中尝试一个非常基本的
curl
命令。它应该将
install.html
文件下载到我的本地目录中,文件名为
output
。它做了一些事情,但没有任何进展的迹象:

 curl -o output http://cygwin.com/install.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:38 --:--:--     0

我很确定我的网络连接速度很快。有什么想法吗?

您能在Cygwin中执行其他网络功能吗?例如,像ping一样?@NewWorld,嗯,我想不是:
ping www.stackoverflow.com
给我“请求超时”。这似乎是一条富有成效的思路——但我不知道下一步该怎么做……
ping
就是一个坏例子;它需要某些您可能没有的特权
curl
肯定有效(只需在XP虚拟机上进行双重检查),因此这是您的配置问题。你能
curl
其他网站吗?你能在浏览器中查看该页面吗?@Yaakov,
curl www.stackoverflow.com
刚刚挂起。当然,我的浏览器中的
stackoverflow
没有问题。Cygwin中有
/etc/resolv.conf
文件吗?尝试删除它。